Bullet Collision Detection & Physics Library
|
Go to the documentation of this file.
16 #ifndef BT_COLLISION_SHAPE_H
17 #define BT_COLLISION_SHAPE_H
52 virtual btScalar getAngularMotionDisc()
const;
54 virtual btScalar getContactBreakingThreshold(
btScalar defaultContactThresholdFactor)
const;
124 m_userPointer = userPtr;
129 return m_userPointer;
143 m_userIndex2 = index;
151 virtual int calculateSerializeBufferSize()
const;
154 virtual const char* serialize(
void* dataBuffer,
btSerializer* serializer)
const;
156 virtual void serializeSingleShape(
btSerializer * serializer)
const;
174 #endif //BT_COLLISION_SHAPE_H
do not change those serialization structures, it requires an updated sBulletDNAstr/sBulletDNAstr64
void setUserIndex(int index)
static bool isConvex2d(int proxyType)
void * getUserPointer() const
float btScalar
The btScalar type abstracts floating point numbers, to easily switch between double and single floati...
virtual btVector3 getAnisotropicRollingFrictionDirection() const
the getAnisotropicRollingFrictionDirection can be used in combination with setAnisotropicFriction See...
@ INVALID_SHAPE_PROXYTYPE
static bool isCompound(int proxyType)
virtual ~btCollisionShape()
static bool isPolyhedral(int proxyType)
static bool isConvex(int proxyType)
int getUserIndex2() const
void setUserIndex2(int index)
The btCollisionShape class provides an interface for collision shapes that can be shared among btColl...
static bool isSoftBody(int proxyType)
static bool isConcave(int proxyType)
virtual btScalar getMargin() const =0
virtual void getAabb(const btTransform &t, btVector3 &aabbMin, btVector3 &aabbMax) const =0
getAabb returns the axis aligned bounding box in the coordinate frame of the given transform t.
static bool isInfinite(int proxyType)
btVector3 can be used to represent 3D points and vectors.
bool isInfinite() const
isInfinite is used to catch simulation error (aabb check)
#define ATTRIBUTE_ALIGNED16(a)
#define SIMD_FORCE_INLINE
virtual void setMargin(btScalar margin)=0
virtual void calculateLocalInertia(btScalar mass, btVector3 &inertia) const =0
bool isPolyhedral() const
void setUserPointer(void *userPtr)
optional user data pointer
static bool isNonMoving(int proxyType)
virtual void setLocalScaling(const btVector3 &scaling)=0
virtual int calculateSerializeBufferSize() const
virtual const btVector3 & getLocalScaling() const =0
BT_DECLARE_ALIGNED_ALLOCATOR()
virtual const char * getName() const =0