Bullet Collision Detection & Physics Library
|
Structure for containing Boxes. More...
#include <btGImpactBvh.h>
Public Member Functions | |
btGImpactBvh () | |
this constructor doesn't build the tree. you must call buildSet | |
btGImpactBvh (btPrimitiveManagerBase *primitive_manager) | |
this constructor doesn't build the tree. you must call buildSet | |
btAABB | getGlobalBox () const |
void | setPrimitiveManager (btPrimitiveManagerBase *primitive_manager) |
btPrimitiveManagerBase * | getPrimitiveManager () const |
Protected Member Functions | |
void | refit () |
Structure for containing Boxes.
This class offers an structure for managing a box tree of primitives. Requires a Primitive prototype (like btPrimitiveManagerBase )
Definition at line 167 of file btGImpactBvh.h.
|
inline |
this constructor doesn't build the tree. you must call buildSet
Definition at line 179 of file btGImpactBvh.h.
|
inline |
this constructor doesn't build the tree. you must call buildSet
Definition at line 185 of file btGImpactBvh.h.
bool btGImpactBvh::boxQuery | ( | const btAABB & | box, |
btAlignedObjectArray< int > & | collided_results | ||
) | const |
returns the indices of the primitives in the m_primitive_manager
Definition at line 269 of file btGImpactBvh.cpp.
|
inline |
returns the indices of the primitives in the m_primitive_manager
Definition at line 223 of file btGImpactBvh.h.
void btGImpactBvh::buildSet | ( | ) |
this rebuild the entire set
Definition at line 253 of file btGImpactBvh.cpp.
|
static |
Definition at line 444 of file btGImpactBvh.cpp.
|
inline |
Definition at line 295 of file btGImpactBvh.h.
Definition at line 285 of file btGImpactBvh.h.
|
inline |
Definition at line 190 of file btGImpactBvh.h.
Definition at line 275 of file btGImpactBvh.h.
Definition at line 265 of file btGImpactBvh.h.
|
inline |
node count
Definition at line 249 of file btGImpactBvh.h.
Definition at line 260 of file btGImpactBvh.h.
|
inline |
Definition at line 290 of file btGImpactBvh.h.
|
inline |
Definition at line 202 of file btGImpactBvh.h.
Definition at line 280 of file btGImpactBvh.h.
|
inline |
tells if this set has hierarcht
Definition at line 237 of file btGImpactBvh.h.
tells if the node is a leaf
Definition at line 255 of file btGImpactBvh.h.
|
inline |
tells if this set is a trimesh
Definition at line 243 of file btGImpactBvh.h.
bool btGImpactBvh::rayQuery | ( | const btVector3 & | ray_dir, |
const btVector3 & | ray_origin, | ||
btAlignedObjectArray< int > & | collided_results | ||
) | const |
returns the indices of the primitives in the m_primitive_manager
Definition at line 305 of file btGImpactBvh.cpp.
|
protected |
Definition at line 213 of file btGImpactBvh.cpp.
Definition at line 270 of file btGImpactBvh.h.
|
inline |
Definition at line 197 of file btGImpactBvh.h.
|
inline |
node manager prototype functions
this attemps to refit the box set.
Definition at line 211 of file btGImpactBvh.h.
|
protected |
Definition at line 170 of file btGImpactBvh.h.
|
protected |
Definition at line 171 of file btGImpactBvh.h.