38 mass/(
btScalar(12.0)) * (lx*lx + lz*lz),
39 mass/(
btScalar(12.0)) * (lx*lx + ly*ly));
void setValue(const btScalar &_x, const btScalar &_y, const btScalar &_z)
virtual btScalar getMargin() const
const btScalar & x() const
Return the x value.
const btScalar & y() const
Return the y value.
btVector3 can be used to represent 3D points and vectors.
virtual void calculateLocalInertia(btScalar mass, btVector3 &inertia) const
const btVector3 & getHalfExtentsWithoutMargin() const
void btTransformAabb(const btVector3 &halfExtents, btScalar margin, const btTransform &t, btVector3 &aabbMinOut, btVector3 &aabbMaxOut)
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...
btVector3 getHalfExtentsWithMargin() const
float btScalar
The btScalar type abstracts floating point numbers, to easily switch between double and single floati...
const btScalar & z() const
Return the z value.