PDA

View Full Version : Does PhysX use one or two stage physics calculation?



SilverWarior
28-12-2012, 05:28 PM
Hi guys!
Does PhysX uses one or two stage physical calculations?
For those who don't know the difference between one and two stage physical calulations:
In one stage physical calculation you calculate the forces for current object and then move that object to new position right away based on the forces that has been aplied to it and then you do this for rest of the objects.
In two stage physical calculation you calculate the forces for current object and then store the information about the position to which object should be moved. You do this for every object and finally once you have calculated new positions to all object you go and move them.

Two stage physical calculation does use more memory but it offers much better acuracy.

Also how about Newton Dynamics? Does it support two stage physical calulations.

phibermon
10-01-2013, 09:30 PM
Newton Game Dynamics :

Our engine implements a deterministic solver, which is not based on traditional LCP or iterative methods, but possesses the stability and speed of both respectively. This feature makes our product a tool not only for games, but also for any real-time physics simulation.

as for PhysX I don't know, but most of the popular physics engines use iterative solvers (bullet, havok) your 'one stage' definition matches an iterative solver.

As for the 'two stage' defintion then you're looking at, as mentioned above, LCP based solvers (Linear complementary problem). LCP is a broad term for certain classes of co-dependent mathematical problems (think quadratic equations) such as for instance, physics solvers.

So an iterative solver achieves a higher degree of accuracy through progressive refinement (think tight collisions between 3 or more objects) where are a non iterative solver (not that I know any specifics) uses various mathmatical tools developed for thermodynamic problems to, I assume, produce close approximates as an alternative.

In the words of Newton (game dynamics, not the man) I should imagine that the best physics engines use a wide combination of cross discipline techniques.