16 #ifndef BT_COLLISION_SHAPE_H
17 #define BT_COLLISION_SHAPE_H
51 virtual btScalar getAngularMotionDisc()
const;
53 virtual btScalar getContactBreakingThreshold(
btScalar defaultContactThresholdFactor)
const;
101 virtual void setLocalScaling(
const btVector3& scaling) =0;
102 virtual const btVector3& getLocalScaling()
const =0;
107 virtual const char* getName()
const =0 ;
119 virtual void setMargin(
btScalar margin) = 0;
120 virtual btScalar getMargin()
const = 0;
126 m_userPointer = userPtr;
131 return m_userPointer;
134 virtual int calculateSerializeBufferSize()
const;
137 virtual const char* serialize(
void* dataBuffer,
btSerializer* serializer)
const;
139 virtual void serializeSingleShape(
btSerializer* serializer)
const;
158 #endif //BT_COLLISION_SHAPE_H
static bool isInfinite(int proxyType)
virtual int calculateSerializeBufferSize() const
The btCollisionShape class provides an interface for collision shapes that can be shared among btColl...
#define SIMD_FORCE_INLINE
static bool isCompound(int proxyType)
static bool isNonMoving(int proxyType)
void setUserPointer(void *userPtr)
optional user data pointer
void * getUserPointer() const
btVector3 can be used to represent 3D points and vectors.
#define ATTRIBUTE_ALIGNED16(a)
static bool isPolyhedral(int proxyType)
static bool isSoftBody(int proxyType)
bool isInfinite() const
isInfinite is used to catch simulation error (aabb check)
bool isPolyhedral() const
#define BT_DECLARE_ALIGNED_ALLOCATOR()
static bool isConvex2d(int proxyType)
static bool isConcave(int proxyType)
virtual ~btCollisionShape()
virtual btVector3 getAnisotropicRollingFrictionDirection() const
the getAnisotropicRollingFrictionDirection can be used in combination with setAnisotropicFriction See...
do not change those serialization structures, it requires an updated sBulletDNAstr/sBulletDNAstr64 ...
static bool isConvex(int proxyType)
float btScalar
The btScalar type abstracts floating point numbers, to easily switch between double and single floati...