32 return supVertexA - supVertexB;
38 for (
int i = 0; i < numVectors; i++)
56 getAabb(identity, aabbMin, aabbMax);
70 inertia = scaledmass * (
btVector3(y2 + z2, x2 + z2, x2 + y2));
@ MINKOWSKI_DIFFERENCE_SHAPE_PROXYTYPE
float btScalar
The btScalar type abstracts floating point numbers, to easily switch between double and single floati...
The btConvexInternalShape is an internal base class, shared by most convex shape implementations.
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 btConvexShape is an abstract shape interface, implemented by all convex shapes such as btBoxShape...
virtual btVector3 localGetSupportingVertexWithoutMargin(const btVector3 &vec) const =0
virtual btScalar getMargin() const =0
virtual void batchedUnitVectorGetSupportingVertexWithoutMargin(const btVector3 *vectors, btVector3 *supportVerticesOut, int numVectors) const
virtual btScalar getMargin() const
const btConvexShape * m_shapeB
btMinkowskiSumShape(const btConvexShape *shapeA, const btConvexShape *shapeB)
virtual void calculateLocalInertia(btScalar mass, btVector3 &inertia) const
const btConvexShape * m_shapeA
virtual btVector3 localGetSupportingVertexWithoutMargin(const btVector3 &vec) const
btVector3 can be used to represent 3D points and vectors.
const btScalar & z() const
Return the z value.
const btScalar & x() const
Return the x value.
const btScalar & y() const
Return the y value.