Bullet Collision Detection & Physics Library
|
The btCollisionShape class provides an interface for collision shapes that can be shared among btCollisionObjects. More...
#include <btCollisionShape.h>
Protected Attributes | |
int | m_shapeType |
void * | m_userPointer |
int | m_userIndex |
int | m_userIndex2 |
The btCollisionShape class provides an interface for collision shapes that can be shared among btCollisionObjects.
Definition at line 26 of file btCollisionShape.h.
|
inline |
Definition at line 38 of file btCollisionShape.h.
|
inlinevirtual |
Definition at line 42 of file btCollisionShape.h.
btCollisionShape::BT_DECLARE_ALIGNED_ALLOCATOR | ( | ) |
|
pure virtual |
Implemented in btBox2dShape, btBoxShape, btCapsuleShape, btCompoundShape, btConeShape, btConvex2dShape, btCylinderShape, btEmptyShape, btHeightfieldTerrainShape, btMinkowskiSumShape, btMultiSphereShape, btPolyhedralConvexShape, btScaledBvhTriangleMeshShape, btSdfCollisionShape, btSphereShape, btStaticPlaneShape, btTriangleMeshShape, btTriangleShape, btUniformScalingShape, btGImpactCompoundShape, btGImpactMeshShapePart, btGImpactMeshShape, btSoftClusterCollisionShape, and btSoftBodyCollisionShape.
|
inlinevirtual |
Reimplemented in btBvhTriangleMeshShape, btCapsuleShape, btCompoundShape, btConeShape, btConvexHullShape, btConvexInternalShape, btCylinderShape, btMultiSphereShape, btScaledBvhTriangleMeshShape, btStaticPlaneShape, and btGImpactMeshShape.
Definition at line 169 of file btCollisionShape.h.
void btCollisionShape::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
Definition at line 57 of file btCollisionShape.cpp.
|
pure virtual |
getAabb returns the axis aligned bounding box in the coordinate frame of the given transform t.
Implemented in btBox2dShape, btBoxShape, btCapsuleShape, btCompoundShape, btConvex2dShape, btConvexInternalShape, btConvexInternalAabbCachingShape, btCylinderShape, btEmptyShape, btHeightfieldTerrainShape, btPolyhedralConvexAabbCachingShape, btScaledBvhTriangleMeshShape, btSdfCollisionShape, btSphereShape, btStaticPlaneShape, btBU_Simplex1to4, btTriangleMeshShape, btTriangleShape, btUniformScalingShape, btGImpactShapeInterface, btTriangleShapeEx, btSoftBodyCollisionShape, btSoftClusterCollisionShape, and btConvexShape.
|
virtual |
getAngularMotionDisc returns the maximum radius needed for Conservative Advancement to handle time-of-impact with rotations.
Definition at line 47 of file btCollisionShape.cpp.
the getAnisotropicRollingFrictionDirection can be used in combination with setAnisotropicFriction See Bullet/Demos/RollingFrictionDemo for an example
Reimplemented in btCapsuleShape, btConeShape, btConeShapeX, btConeShapeZ, and btCylinderShape.
Definition at line 114 of file btCollisionShape.h.
Definition at line 30 of file btCollisionShape.cpp.
|
virtual |
Definition at line 42 of file btCollisionShape.cpp.
Implemented in btCompoundShape, btConvex2dShape, btConvexInternalShape, btConvexTriangleMeshShape, btEmptyShape, btHeightfieldTerrainShape, btScaledBvhTriangleMeshShape, btSdfCollisionShape, btStaticPlaneShape, btTriangleMeshShape, btUniformScalingShape, btGImpactShapeInterface, btGImpactMeshShapePart, btSoftBodyCollisionShape, and btConvexShape.
Implemented in btBox2dShape, btBoxShape, btBvhTriangleMeshShape, btCapsuleShape, btCapsuleShapeX, btCapsuleShapeZ, btCompoundShape, btConeShape, btConeShapeX, btConeShapeZ, btConvex2dShape, btConvexHullShape, btConvexPointCloudShape, btConvexTriangleMeshShape, btCylinderShape, btCylinderShapeX, btCylinderShapeZ, btEmptyShape, btHeightfieldTerrainShape, btMinkowskiSumShape, btMultimaterialTriangleMeshShape, btMultiSphereShape, btScaledBvhTriangleMeshShape, btSdfCollisionShape, btSphereShape, btStaticPlaneShape, btBU_Simplex1to4, btTriangleMeshShape, btTriangleShape, btUniformScalingShape, btGImpactCompoundShape, btGImpactMeshShapePart, btGImpactMeshShape, btSoftBodyCollisionShape, and btSoftClusterCollisionShape.
|
inline |
Definition at line 107 of file btCollisionShape.h.
|
inline |
Definition at line 136 of file btCollisionShape.h.
|
inline |
Definition at line 146 of file btCollisionShape.h.
|
inline |
Definition at line 127 of file btCollisionShape.h.
|
inline |
Definition at line 82 of file btCollisionShape.h.
|
inline |
Definition at line 78 of file btCollisionShape.h.
|
inline |
Definition at line 70 of file btCollisionShape.h.
|
inline |
Definition at line 65 of file btCollisionShape.h.
|
inline |
isInfinite is used to catch simulation error (aabb check)
Definition at line 93 of file btCollisionShape.h.
|
inline |
Definition at line 74 of file btCollisionShape.h.
|
inline |
Definition at line 60 of file btCollisionShape.h.
|
inline |
Definition at line 87 of file btCollisionShape.h.
|
virtual |
fills the dataBuffer and returns the struct name (and 0 on failure)
Reimplemented in btBvhTriangleMeshShape, btCapsuleShape, btCompoundShape, btConeShape, btConvexHullShape, btConvexInternalShape, btCylinderShape, btMultiSphereShape, btScaledBvhTriangleMeshShape, btStaticPlaneShape, and btGImpactMeshShape.
Definition at line 96 of file btCollisionShape.cpp.
|
virtual |
Definition at line 113 of file btCollisionShape.cpp.
Implemented in btSoftBodyCollisionShape, btBox2dShape, btBoxShape, btBvhTriangleMeshShape, btCapsuleShape, btCompoundShape, btConeShape, btConvex2dShape, btConvexHullShape, btConvexInternalShape, btConvexInternalAabbCachingShape, btConvexPointCloudShape, btConvexTriangleMeshShape, btCylinderShape, btEmptyShape, btHeightfieldTerrainShape, btPolyhedralConvexAabbCachingShape, btScaledBvhTriangleMeshShape, btSdfCollisionShape, btStaticPlaneShape, btTriangleMeshShape, btUniformScalingShape, btGImpactShapeInterface, btGImpactMeshShapePart, btGImpactMeshShape, and btConvexShape.
Implemented in btBox2dShape, btBoxShape, btCapsuleShape, btConcaveShape, btCylinderShape, btCompoundShape, btConvex2dShape, btConvexInternalShape, btSdfCollisionShape, btSphereShape, btUniformScalingShape, btGImpactShapeInterface, btGImpactMeshShapePart, btGImpactMeshShape, btSoftClusterCollisionShape, and btConvexShape.
Definition at line 131 of file btCollisionShape.h.
Definition at line 141 of file btCollisionShape.h.
optional user data pointer
Definition at line 122 of file btCollisionShape.h.
|
protected |
Definition at line 30 of file btCollisionShape.h.
|
protected |
Definition at line 32 of file btCollisionShape.h.
|
protected |
Definition at line 33 of file btCollisionShape.h.
|
protected |
Definition at line 31 of file btCollisionShape.h.