48 maxAabb[i] = tmp[i]+margin;
51 minAabb[i] = tmp[i]-margin;
86 m_localAabbMin(1,1,1),
87 m_localAabbMax(-1,-1,-1),
88 m_isLocalAabbValid(false)
132 for (
int i = 0; i < 3; ++i )
140 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...
btScalar m_collisionMargin
void setValue(const btScalar &_x, const btScalar &_y, const btScalar &_z)
The btConvexInternalShape is an internal base class, shared by most convex shape implementations.
btVector3 absolute() const
Return a vector will the absolute values of each element.
virtual btVector3 localGetSupportingVertexWithoutMargin(const btVector3 &vec) const =0
virtual btScalar getMargin() const
btVector3 & normalize()
Normalize this vector x^2 + y^2 + z^2 = 1.
void getNonvirtualAabb(const btTransform &trans, btVector3 &aabbMin, btVector3 &aabbMax, btScalar margin) const
virtual void batchedUnitVectorGetSupportingVertexWithoutMargin(const btVector3 *vectors, btVector3 *supportVerticesOut, int numVectors) const =0
virtual btVector3 localGetSupportingVertex(const btVector3 &vec) const
btVector3 can be used to represent 3D points and vectors.
btConvexInternalAabbCachingShape()
virtual void setLocalScaling(const btVector3 &scaling)
virtual void getAabbSlow(const btTransform &t, btVector3 &aabbMin, btVector3 &aabbMax) const
virtual void setLocalScaling(const btVector3 &scaling)
float btScalar
The btScalar type abstracts floating point numbers, to easily switch between double and single floati...
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...