Bullet Collision Detection & Physics Library
|
The btEmptyShape is a collision shape without actual collision detection shape, so most users should ignore this class. More...
#include <btEmptyShape.h>
Public Member Functions | |
BT_DECLARE_ALIGNED_ALLOCATOR () | |
btEmptyShape () | |
virtual | ~btEmptyShape () |
void | getAabb (const btTransform &t, btVector3 &aabbMin, btVector3 &aabbMax) const |
getAabb's default implementation is brute force, expected derived classes to implement a fast dedicated version More... | |
virtual void | setLocalScaling (const btVector3 &scaling) |
virtual const btVector3 & | getLocalScaling () const |
virtual void | calculateLocalInertia (btScalar mass, btVector3 &inertia) const |
virtual const char * | getName () const |
virtual void | processAllTriangles (btTriangleCallback *, const btVector3 &, const btVector3 &) const |
Public Member Functions inherited from btConcaveShape | |
BT_DECLARE_ALIGNED_ALLOCATOR () | |
btConcaveShape () | |
virtual | ~btConcaveShape () |
virtual btScalar | getMargin () const |
virtual void | setMargin (btScalar collisionMargin) |
Public Member Functions inherited from btCollisionShape | |
BT_DECLARE_ALIGNED_ALLOCATOR () | |
btCollisionShape () | |
virtual | ~btCollisionShape () |
virtual void | getBoundingSphere (btVector3 ¢er, btScalar &radius) const |
virtual btScalar | getAngularMotionDisc () const |
getAngularMotionDisc returns the maximus radius needed for Conservative Advancement to handle time-of-impact with rotations. More... | |
virtual btScalar | getContactBreakingThreshold (btScalar defaultContactThresholdFactor) const |
void | calculateTemporalAabb (const btTransform &curTrans, const btVector3 &linvel, const btVector3 &angvel, btScalar timeStep, btVector3 &temporalAabbMin, btVector3 &temporalAabbMax) const |
calculateTemporalAabb calculates the enclosing aabb for the moving object over interval [0..timeStep) result is conservative More... | |
bool | isPolyhedral () const |
bool | isConvex2d () const |
bool | isConvex () const |
bool | isNonMoving () const |
bool | isConcave () const |
bool | isCompound () const |
bool | isSoftBody () const |
bool | isInfinite () const |
isInfinite is used to catch simulation error (aabb check) More... | |
int | getShapeType () const |
virtual btVector3 | getAnisotropicRollingFrictionDirection () const |
the getAnisotropicRollingFrictionDirection can be used in combination with setAnisotropicFriction See Bullet/Demos/RollingFrictionDemo for an example More... | |
void | setUserPointer (void *userPtr) |
optional user data pointer More... | |
void * | getUserPointer () const |
virtual int | calculateSerializeBufferSize () const |
virtual const char * | serialize (void *dataBuffer, btSerializer *serializer) const |
fills the dataBuffer and returns the struct name (and 0 on failure) More... | |
virtual void | serializeSingleShape (btSerializer *serializer) const |
Protected Attributes | |
btVector3 | m_localScaling |
Protected Attributes inherited from btConcaveShape | |
btScalar | m_collisionMargin |
Protected Attributes inherited from btCollisionShape | |
int | m_shapeType |
void * | m_userPointer |
The btEmptyShape is a collision shape without actual collision detection shape, so most users should ignore this class.
It can be replaced by another shape during runtime, but the inertia tensor should be recomputed.
Definition at line 31 of file btEmptyShape.h.
btEmptyShape::btEmptyShape | ( | ) |
Definition at line 22 of file btEmptyShape.cpp.
|
virtual |
Definition at line 28 of file btEmptyShape.cpp.
btEmptyShape::BT_DECLARE_ALIGNED_ALLOCATOR | ( | ) |
Implements btCollisionShape.
Definition at line 44 of file btEmptyShape.cpp.
|
virtual |
getAabb's default implementation is brute force, expected derived classes to implement a fast dedicated version
Implements btCollisionShape.
Definition at line 34 of file btEmptyShape.cpp.
|
inlinevirtual |
Implements btCollisionShape.
Definition at line 49 of file btEmptyShape.h.
|
inlinevirtual |
Implements btCollisionShape.
Definition at line 56 of file btEmptyShape.h.
|
inlinevirtual |
Implements btConcaveShape.
Definition at line 61 of file btEmptyShape.h.
|
inlinevirtual |
Implements btCollisionShape.
Definition at line 45 of file btEmptyShape.h.
|
protected |
Definition at line 66 of file btEmptyShape.h.