58 newDot = vec.
dot(vtx);
70 newDot = vec.
dot(vtx);
87 for (
int j=0;j<numVectors;j++)
98 newDot = vec.
dot(vtx);
102 supportVerticesOut[j] = vtx;
109 newDot = vec.
dot(vtx);
113 supportVerticesOut[j] = vtx;
131 btVector3 halfExtents(radius,radius,radius);
142 inertia[0] = scaledmass * (y2+z2);
143 inertia[1] = scaledmass * (x2+z2);
144 inertia[2] = scaledmass * (x2+y2);
btCapsuleShapeX(btScalar radius, btScalar height)
btScalar m_collisionMargin
btScalar getRadius() const
void setValue(const btScalar &_x, const btScalar &_y, const btScalar &_z)
btScalar length2() const
Return the length of the vector squared.
The btConvexInternalShape is an internal base class, shared by most convex shape implementations.
btScalar btSqrt(btScalar y)
btVector3 m_implicitShapeDimensions
btCapsuleShapeZ(btScalar radius, btScalar height)
btScalar getHalfHeight() const
btCapsuleShape()
only used for btCapsuleShapeZ and btCapsuleShapeX subclasses.
btScalar dot(const btVector3 &v) const
Return the dot product.
virtual void batchedUnitVectorGetSupportingVertexWithoutMargin(const btVector3 *vectors, btVector3 *supportVerticesOut, int numVectors) const
btVector3 can be used to represent 3D points and vectors.
virtual void calculateLocalInertia(btScalar mass, btVector3 &inertia) const
CollisionShape Interface.
virtual btVector3 localGetSupportingVertexWithoutMargin(const btVector3 &vec) const
btConvexShape Interface
float btScalar
The btScalar type abstracts floating point numbers, to easily switch between double and single floati...