16#ifndef BT_COLLISION_SHAPE_H
17#define BT_COLLISION_SHAPE_H
103 virtual const char*
getName()
const = 0;
virtual void setLocalScaling(const btVector3 &scaling)
virtual const char * getName() const
virtual void calculateLocalInertia(btScalar mass, btVector3 &inertia) const
virtual void getAabb(const btTransform &t, btVector3 &aabbMin, btVector3 &aabbMax) const
virtual void setMargin(btScalar collisionMargin)
static SIMD_FORCE_INLINE bool isSoftBody(int proxyType)
static SIMD_FORCE_INLINE bool isConvex(int proxyType)
static SIMD_FORCE_INLINE bool isConcave(int proxyType)
@ INVALID_SHAPE_PROXYTYPE
static SIMD_FORCE_INLINE bool isInfinite(int proxyType)
static SIMD_FORCE_INLINE bool isPolyhedral(int proxyType)
static SIMD_FORCE_INLINE bool isCompound(int proxyType)
static SIMD_FORCE_INLINE bool isNonMoving(int proxyType)
static SIMD_FORCE_INLINE bool isConvex2d(int proxyType)
virtual btVector3 getAnisotropicRollingFrictionDirection() const
void setUserPointer(void *userPointer)
users can point to their objects, userPointer is not used by Bullet
void setUserIndex(int index)
users can point to their objects, userPointer is not used by Bullet
void * getUserPointer() const
users can point to their objects, userPointer is not used by Bullet
virtual void getBoundingSphere(btVector3 ¢er, btScalar &radius) const
void calculateTemporalAabb(const btTransform &curTrans, const btVector3 &linvel, const btVector3 &angvel, btScalar timeStep, btVector3 &temporalAabbMin, btVector3 &temporalAabbMax) const
virtual const btVector3 & getLocalScaling() const =0
btCollisionShape
The btCollisionShape class provides an interface for collision shapes that can be shared among btColl...
virtual btScalar getAngularMotionDisc() const
getAngularMotionDisc returns the maximum radius needed for Conservative Advancement to handle time-of...
virtual btScalar getMargin() const =0
virtual btScalar getContactBreakingThreshold(btScalar defaultContactThresholdFactor) const
virtual void serializeSingleShape(btSerializer *serializer) const
unsigned calculateSerializeBufferSize() const
virtual bool serialize(void *o_alignedDataBuffer, unsigned i_dataBufferSize, bool i_swapEndian) const
Data buffer MUST be 16 byte aligned.
#define BT_DECLARE_ALIGNED_ALLOCATOR()
float btScalar
The btScalar type abstracts floating point numbers, to easily switch between double and single floati...
#define ATTRIBUTE_ALIGNED16(a)
#define SIMD_FORCE_INLINE
btVector3
btVector3 can be used to represent 3D points and vectors. It has an un-used w component to suit 16-by...
do not change those serialization structures, it requires an updated sBulletDNAstr/sBulletDNAstr64