35 mass / (
btScalar(12.0)) * (lx * lx + lz * lz),
36 mass / (
btScalar(12.0)) * (lx * lx + ly * ly));
void btTransformAabb(const btVector3 &halfExtents, btScalar margin, const btTransform &t, btVector3 &aabbMinOut, btVector3 &aabbMaxOut)
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
const btVector3 & getHalfExtentsWithoutMargin() const
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
virtual btScalar getMargin() const
btVector3 can be used to represent 3D points and vectors.
const btScalar & z() const
Return the z value.
void setValue(const btScalar &_x, const btScalar &_y, const btScalar &_z)
const btScalar & x() const
Return the x value.
const btScalar & y() const
Return the y value.