47 mass/(
btScalar(12.0)) * (lx*lx + lz*lz),
48 mass/(
btScalar(12.0)) * (lx*lx + ly*ly));
void setValue(const btScalar &_x, const btScalar &_y, const btScalar &_z)
btVector3 getHalfExtentsWithMargin() 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...
const btVector3 & getHalfExtentsWithoutMargin() const
virtual btScalar getMargin() const
btVector3 m_implicitShapeDimensions
const btScalar & x() const
Return the x value.
The btPolyhedralConvexShape is an internal interface class for polyhedral convex shapes.
const btScalar & y() const
Return the y value.
btVector3 can be used to represent 3D points and vectors.
btBoxShape(const btVector3 &boxHalfExtents)
virtual void calculateLocalInertia(btScalar mass, btVector3 &inertia) const
void setSafeMargin(btScalar minDimension, btScalar defaultMarginMultiplier=0.1f)
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...
const btScalar & z() const
Return the z value.