38 for (i = 0; i < numVectors; i++)
86 for (
int i = 0; i < 6; i++)
88 _directions[i] = _directions[i] * t.
getBasis();
93 btVector3 aabbMin1(0, 0, 0), aabbMax1(0, 0, 0);
95 for (
int i = 0; i < 3; ++i)
97 aabbMax1[i] = t(_supporting[i])[i];
98 aabbMin1[i] = t(_supporting[i + 3])[i];
101 aabbMin = aabbMin1 - marginVec;
102 aabbMax = aabbMax1 + marginVec;
107 for (
int i = 0; i < 3; i++)
113 aabbMax[i] = tmp[i] + margin;
117 aabbMin[i] = tmp[i] - margin;
@ UNIFORM_SCALING_SHAPE_PROXYTYPE
float btScalar
The btScalar type abstracts floating point numbers, to easily switch between double and single floati...
virtual void calculateLocalInertia(btScalar mass, btVector3 &inertia) const =0
The btConvexShape is an abstract shape interface, implemented by all convex shapes such as btBoxShape...
virtual const btVector3 & getLocalScaling() const =0
virtual void batchedUnitVectorGetSupportingVertexWithoutMargin(const btVector3 *vectors, btVector3 *supportVerticesOut, int numVectors) const =0
virtual void setLocalScaling(const btVector3 &scaling)=0
virtual btVector3 localGetSupportingVertex(const btVector3 &vec) const =0
virtual void setMargin(btScalar margin)=0
virtual int getNumPreferredPenetrationDirections() const =0
virtual btVector3 localGetSupportingVertexWithoutMargin(const btVector3 &vec) const =0
virtual btScalar getMargin() const =0
virtual void getPreferredPenetrationDirection(int index, btVector3 &penetrationVector) const =0
btVector3 can be used to represent 3D points and vectors.