34 for (
int i = 0; i < 3; i++)
76 m_localAabbMin(1, 1, 1),
77 m_localAabbMax(-1, -1, -1),
78 m_isLocalAabbValid(
false)
118 for (
int i = 0; i < 3; ++i)
126 for (
int i = 0; i < 3; i++)
#define CONVEX_DISTANCE_MARGIN
The CONVEX_DISTANCE_MARGIN is a default collision margin for convex collision shapes derived from btC...
const T & btMax(const T &a, const T &b)
float btScalar
The btScalar type abstracts floating point numbers, to easily switch between double and single floati...
void getNonvirtualAabb(const btTransform &trans, btVector3 &aabbMin, btVector3 &aabbMax, btScalar margin) const
btConvexInternalAabbCachingShape()
virtual void setLocalScaling(const btVector3 &scaling)
virtual void getAabb(const btTransform &t, btVector3 &aabbMin, btVector3 &aabbMax) const
getAabb's default implementation is brute force, expected derived classes to implement a fast dedicat...
The btConvexInternalShape is an internal base class, shared by most convex shape implementations.
btScalar m_collisionMargin
virtual btVector3 localGetSupportingVertex(const btVector3 &vec) const
virtual void getAabbSlow(const btTransform &t, btVector3 &aabbMin, btVector3 &aabbMax) const
virtual void setLocalScaling(const btVector3 &scaling)
virtual btScalar getMargin() const
virtual void batchedUnitVectorGetSupportingVertexWithoutMargin(const btVector3 *vectors, btVector3 *supportVerticesOut, int numVectors) const =0
virtual btVector3 localGetSupportingVertexWithoutMargin(const btVector3 &vec) const =0
btVector3 can be used to represent 3D points and vectors.
btVector3 absolute() const
Return a vector with the absolute values of each element.
void setValue(const btScalar &_x, const btScalar &_y, const btScalar &_z)