NewtonInvalidateCache() and client-server multiplayer

A place to discuss everything related to Newton Dynamics.

Moderators: Sascha Willems, walaber

NewtonInvalidateCache() and client-server multiplayer

Postby zak » Sun Jan 28, 2018 7:28 am

For client-server multiplayer it's necessary to bring the simulation back to a previous state and then restart it frequently.
To do this i assign matrix, linear and angular velocity to all bodies and then i call NewtonInvalidateCache().
This is enough or I have to call NewtonResetBroadphase() too?

In my simulation, bodies, joints, materials and collisions are all created at the beginning and after no longer are created or destroyed. In this case there is a more performing system of NewtonInvalidateCache()?
thank you
zak
 
Posts: 87
Joined: Mon Dec 06, 2004 9:30 am

Return to General Discussion

Who is online

Users browsing this forum: No registered users and 13 guests

cron