Code snippet below:
(triMesh is a functioning triangle mesh that I have rendered to authenticate is not the problem).
mass = 0
all other variables have been properly declared in scope
Code: Select all
triangleMeshShape = new btBvhTriangleMeshShape(&triMesh, false);
motionState = new btDefaultMotionState(btTransform(btQuaternion(0, 0, 0, 1), btVector3(0,0,0)));
btVector3 fallInertia(0,0,0);
triangleMeshShape->calculateLocalInertia(mass, fallInertia);
btRigidBody::btRigidBodyConstructionInfo customRigidBodyCI1(mass, motionState, triangleMeshShape, fallInertia);
rigidBody = new btRigidBody(customRigidBodyCI1);
dynamicsWorld->addRigidBody(rigidBody);