How does the contactTest work?? [ HELP ]

Post Reply
johnsonalpha
Posts: 73
Joined: Fri May 01, 2015 8:23 pm

How does the contactTest work?? [ HELP ]

Post by johnsonalpha »

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);
Post Reply