Quick question here. I'm using btRaycastVehicle and everything is working fine and now I'd like to add some sounds when the car's rigid body collides with the track. The track is implemented with a btBvhTriangleMeshShape.
I follow the example in this post and set a collision flag between the rigid body of my vehicle and the rigid body of the track:
Code: Select all
world.vehicle->getRigidBody()->setCollisionFlags(groundRigidBody->getCollisionFlags() | btCollisionObject::CF_CUSTOM_MATERIAL_CALLBACK);
Any help is appreciated!