How does the contactTest work?? [ HELP ]
Posted: Sun May 24, 2015 10:27 pm
How does the contact test work? i make a box rigid body how would i setup the contacttest??
Code: Select all
btCollisionShape* boxshape = new btBoxShape(btVector3(box_width, box_height, box_length));
boxshape->calculateLocalInertia(mass, fallInertia);
btRigidBody::btRigidBodyConstructionInfo fallRigidBodyCI(mass, fallMotionState, boxshape, fallInertia);
btRigidBody* fallRigidBody = new btRigidBody(fallRigidBodyCI);
dynamicsWorld->addRigidBody(fallRigidBody);