Is it possible to get a pointer to the world that a rigid body lives in from that rigid body? I was looking for something like rigidbody->getWorld() but there doesn't seem to be anything like that. In my project, I use Bullet to control some of the objects in a scene, and a specialized physics engine to handle select other pieces. I have a step in my other engine where I step the simulation to a certain time, and I need to update the Bullet world to that time, too. Unfortunately, as it is now, that other engine can only get pointers to Bullet rigid bodies and nothing else.
So what I'd like to have is something like:
Code: Select all
StepOtherEngine(timestep/2);
rigidbody->getWorld()->stepSimulation(timestep/2, 50, timestep/2);