20 m_uniformScalingFactor(uniformScalingFactor)
41 for (i=0;i<numVectors;i++)
98 _directions[i] = _directions[i]*t.
getBasis();
103 btVector3 aabbMin1(0,0,0),aabbMax1(0,0,0);
105 for (
int i = 0; i < 3; ++i )
107 aabbMax1[i] = t(_supporting[i])[i];
108 aabbMin1[i] = t(_supporting[i + 3])[i];
111 aabbMin = aabbMin1-marginVec;
112 aabbMax = aabbMax1+marginVec;
117 for (
int i=0;i<3;i++)
123 aabbMax[i] = tmp[i]+margin;
127 aabbMin[i] = tmp[i]-margin;
virtual btVector3 localGetSupportingVertex(const btVector3 &vec) const =0
virtual void calculateLocalInertia(btScalar mass, btVector3 &inertia) const =0
virtual void getPreferredPenetrationDirection(int index, btVector3 &penetrationVector) const =0
virtual btVector3 localGetSupportingVertexWithoutMargin(const btVector3 &vec) const =0
The btConvexShape is an abstract shape interface, implemented by all convex shapes such as btBoxShape...
virtual const btVector3 & getLocalScaling() const =0
virtual int getNumPreferredPenetrationDirections() const =0
virtual void batchedUnitVectorGetSupportingVertexWithoutMargin(const btVector3 *vectors, btVector3 *supportVerticesOut, int numVectors) const =0
virtual btScalar getMargin() const =0
btVector3 can be used to represent 3D points and vectors.
virtual void setLocalScaling(const btVector3 &scaling)=0
virtual void setMargin(btScalar margin)=0
float btScalar
The btScalar type abstracts floating point numbers, to easily switch between double and single floati...