Why would you choose PhyzX?
PhyzX is an easy to use physics wrapper all in a single DLL. PhyzX also features an object deactivation system. When a body isn't in motion, it isn't simulated. Whats the point in simulating a body that's not in motion? This allows for hundreds of bodies in your world at a time. Of course there are larger more powerful engines, but this is to help newer users get started with easy physics.
How does it work?
All you need to do is initialize the DLL and specify your worlds gravity, boundaries, etc. Then all you need to do is create objects such as boxes, circles and polygons using the functions provides. Everything is simulated by calling px_worldstep(). You should call this every step to simulate your bodies. The DLL also support joints which is used for linking bodies together.
Comes with an awesome playground to try it out and hopefully you can study it to learn more!
Functions - These are a few major functions without argument info. See the GMK for instructions in each script.
PX_Init(); - This will initialize the DLL. You must call this prior to using Physics functions.
PX_WorldSimulate() - Simulates one step in the physics world. Use this every step.
PX_BodyCreate() - Creates a new body.
PX_BodyUpdate() - Use this to update your object with the body properties such as X,Y and angle.
As of V2, this is the only error I have seen:
Very frustrating because I cannot determine the problem. I think it happens when you try and make a polygon with an angle that is really small:
But I'm not sure. If you find out what is causing the problem (eg. what your trying to do when the problem occurs), please let me know.
Edited by Revel, 03 February 2010 - 03:55 AM.