Simulating a single body for x time;

jchmack

29-01-2008 11:10:21

I'm working on my netcode again and i need to add time/simulate only one body for x milliseconds. When i create a box/rocket/anything there is going to be a delay between clients and i need to have the clients create the object then simulate ONLY this object for x milliseconds (x being the time passed since packet was sent). I am trying to use mBody->simulate(delay) but it doesn't seem to work like i want. all the collisions seem to occur (delay) milliseconds after they "should". Does mBody->simulate() permanently add time to the body or something?

NxOgre (NxOgre 0.9-38) Started, working with:

- PhysX => 2.7.2
- Ogre => 1.4.5 'Eihort'
- Platform => Windows