I then went back to my old friend Newton which I used back in 2008, I checked out the latest build from svn and was up and running in about 3 hours.
The problem's I am having are these:
Newton is extremly slow, I am using a large demo scene and getting 25 fps where as with PhysX in exact same test conditions up to 200 fps, this is only the scene geometry and character controller.
- Code: Select all
GlobalWorld = NewtonCreate();
NewtonInvalidateCache(GlobalWorld);
NewtonSetSolverModel(GlobalWorld, 1); //8
NewtonSetFrictionModel(GlobalWorld, 1); //0
#define MAX_PHYSICS_LOOPS 1
#define MAX_PHYSICS_FPS 60.0f
const dFloat timestepInSecunds = 1.0f / MAX_PHYSICS_FPS;
NewtonCreateConvexHullFromMesh returns 0 for very small meshes (these meshes caused problems in PhysX character controller, they are like tables full of small objects).
What could be going wrong?
I am using this scene for testing along with the sample code from intel:
http://www.youtube.com/watch?v=lj-8EYjusLk