NVIDIAGameWorks / PhysX-3.4

NVIDIA PhysX SDK 3.4
https://www.nvidia.com/
2.35k stars 274 forks source link

A issue about PhysicScene.simulate() function #18

Closed JettHuang closed 7 years ago

JettHuang commented 7 years ago

I find a use simulate(1/60.f) and simulate(1/6000.f), they produce two difference result.

startas commented 7 years ago

Duh, 60.f is 60 and 6000.f is 6000, you misplaced dot, it must be .60f and .6000f .

kstorey-nvidia commented 7 years ago

The behaviour of a physics simulation is heavily dependent on time-step so you can only expect repeatable simulation results if you simulate at a consistent time-step. This isn't unique to PhysX. In general, the smaller the time-step, the more accurate and stable the simulation.