mikachu
08-04-2008 21:48:34
Hi all,
I'm a NxOgre newbie. I'm trying to create a body from a procedurally generated Ogre mesh (in the code below, it's just a sample mesh, just for tests).
Here is the code:
I'm using latest 1.0 branch version of NxOgre, with appropriate PhysX SDK, and latest stable Ogre.
The crash I get is an access violation in the createBody part.
The debugger gives me 195th line of "NxOgreShapeMeshes.cpp" as the crash point.
Any idea?
I'm a NxOgre newbie. I'm trying to create a body from a procedurally generated Ogre mesh (in the code below, it's just a sample mesh, just for tests).
Here is the code:
mWorld = new World("time-controller: ogre");
mScene = mWorld->createScene(
"Eddie",
"renderer: ogre, controller: accumulator, gravity: yes, floor: yes");
TriangleMesh* tm = new NxOgre::TriangleMesh("cube.1m.mesh");
Body* body = mScene->createBody("test; cube.1m.mesh", tm, Vector3(0,0,0), "static: yes");
I'm using latest 1.0 branch version of NxOgre, with appropriate PhysX SDK, and latest stable Ogre.
The crash I get is an access violation in the createBody part.
The debugger gives me 195th line of "NxOgreShapeMeshes.cpp" as the crash point.
Any idea?