which has a motion state and affected by gravity.
I originally used btBvhTriangleMeshShape
But at runtime, it says it doesn't support dynamics.
So I switched to btConvexTriangleMeshShape
But it crashes at calculateLocalInertia
Code: Select all
inline void getNonvirtualAabb(const btTransform& trans,btVector3& aabbMin,btVector3& aabbMax, btScalar margin) const
{
//lazy evaluation of local aabb
btAssert(m_isLocalAabbValid);
btTransformAabb(m_localAabbMin,m_localAabbMax,margin,trans,aabbMin,aabbMax);
}
Thanks
Jack