Bullet Collision Detection & Physics Library
|
The btCapsuleShape represents a capsule around the Y axis, there is also the btCapsuleShapeX aligned around the X axis and btCapsuleShapeZ around the Z axis. More...
#include <btCapsuleShape.h>
Protected Member Functions | |
btCapsuleShape () | |
only used for btCapsuleShapeZ and btCapsuleShapeX subclasses. | |
![]() | |
btConvexInternalShape () | |
Protected Attributes | |
int | m_upAxis |
![]() | |
btVector3 | m_localScaling |
btVector3 | m_implicitShapeDimensions |
btScalar | m_collisionMargin |
btScalar | m_padding |
![]() | |
int | m_shapeType |
void * | m_userPointer |
int | m_userIndex |
int | m_userIndex2 |
The btCapsuleShape represents a capsule around the Y axis, there is also the btCapsuleShapeX aligned around the X axis and btCapsuleShapeZ around the Z axis.
The total height is height+2*radius, so the height is just the height between the center of each 'sphere' of the capsule caps. The btCapsuleShape is a convex hull of two spheres. The btMultiSphereShape is a more general collision shape that takes the convex hull of multiple sphere, so it can also represent a capsule when just using two spheres.
Definition at line 25 of file btCapsuleShape.h.
|
inlineprotected |
only used for btCapsuleShapeZ and btCapsuleShapeX subclasses.
Definition at line 33 of file btCapsuleShape.h.
Definition at line 20 of file btCapsuleShape.cpp.
|
virtual |
Implements btConvexShape.
Definition at line 77 of file btCapsuleShape.cpp.
btCapsuleShape::BT_DECLARE_ALIGNED_ALLOCATOR | ( | ) |
CollisionShape Interface.
Implements btCollisionShape.
Definition at line 111 of file btCapsuleShape.cpp.
|
inlinevirtual |
Reimplemented from btConvexInternalShape.
Definition at line 150 of file btCapsuleShape.h.
|
inline |
Definition at line 173 of file btCapsuleShape.h.
|
inlinevirtual |
getAabb's default implementation is brute force, expected derived classes to implement a fast dedicated version
Implements btConvexShape.
Definition at line 54 of file btCapsuleShape.h.
the getAnisotropicRollingFrictionDirection can be used in combination with setAnisotropicFriction See Bullet/Demos/RollingFrictionDemo for an example
Reimplemented from btCollisionShape.
Definition at line 97 of file btCapsuleShape.h.
|
inline |
Definition at line 82 of file btCapsuleShape.h.
Implements btCollisionShape.
Reimplemented in btCapsuleShapeX, and btCapsuleShapeZ.
Definition at line 66 of file btCapsuleShape.h.
|
inline |
Definition at line 76 of file btCapsuleShape.h.
|
inline |
Definition at line 71 of file btCapsuleShape.h.
|
inlinevirtual |
fills the dataBuffer and returns the struct name (and 0 on failure)
Reimplemented from btConvexInternalShape.
Definition at line 156 of file btCapsuleShape.h.
Reimplemented from btConvexInternalShape.
Definition at line 87 of file btCapsuleShape.h.
Reimplemented from btConvexInternalShape.
Definition at line 48 of file btCapsuleShape.h.
|
protected |
Definition at line 29 of file btCapsuleShape.h.