lordmonkey
06-04-2011 23:19:00
Although tutorials compiled correctly and everything is running fine I have a problem with my application
I get an unhandled exception like this
http://img845.imageshack.us/f/unledd.png/
and here is my piece of code
exception is pointing at last line of my code :/ and the same piece of code works fine in tutorials ...
I get an unhandled exception like this
http://img845.imageshack.us/f/unledd.png/
and here is my piece of code
//NxOgre::WorldDescription worldDesc;
mNxWorld = NxOgre::World::createWorld(); //("time-controller:ogre, log:yes");
NxOgre::SceneDescription sceneDesc;
sceneDesc.mGravity = NxOgre::Constants::MEAN_EARTH_GRAVITY;
//sceneDesc.mName = "NxScene1";
//mNxScene = new NxOgre::Scene;
mNxScene = mNxWorld->createScene(sceneDesc);
mNxScene->getMaterial(0)->setStaticFriction(0.5);
mNxScene->getMaterial(0)->setDynamicFriction(0.5);
mNxScene->getMaterial(0)->setRestitution(0.1);
mRenderSystem = new Critter::RenderSystem(mNxScene, mSceneMgr);
// Setup a BodyDescription.
Critter::BodyDescription bodyDescription;
bodyDescription.mMass = 40.0f; // Set the mass to 40kg.
// Finally create the body.
mBody = mRenderSystem->createBody(NxOgre::BoxDescription(1,1,1), NxOgre::Vec3(0,5,0), "cube.1m.mesh", bodyDescription);
exception is pointing at last line of my code :/ and the same piece of code works fine in tutorials ...