20void btBox2dShape::getAabb(
const btTransform& t, btVector3& aabbMin, btVector3& aabbMax)
const
25void btBox2dShape::calculateLocalInertia(
btScalar mass, btVector3& inertia)
const
34 inertia.setValue(mass / (
btScalar(12.0)) * (ly * ly + lz * lz),
35 mass / (
btScalar(12.0)) * (lx * lx + lz * lz),
36 mass / (
btScalar(12.0)) * (lx * lx + ly * ly));
SIMD_FORCE_INLINE void btTransformAabb(const btVector3 &halfExtents, btScalar margin, const btTransform &t, btVector3 &aabbMinOut, btVector3 &aabbMaxOut)
const btVector3 & getHalfExtentsWithoutMargin() const
btVector3 getHalfExtentsWithMargin() const
virtual btScalar getMargin() const =0
float btScalar
The btScalar type abstracts floating point numbers, to easily switch between double and single floati...