obuil
15-12-2010 08:56:07
first,not found NxCharacter.dll:
[attachment=1]1.jpg[/attachment]
copy NxCharacter.dll in PhysX dir to bin dir
then,
[attachment=0]2.jpg[/attachment]
obuil
15-12-2010 08:58:50
// Create the world.
mWorld = NxOgre::World::createWorld();
// Allow NxOgre to use the Ogre resource system, via the Critter OgreResourceProtocol class.
// - ResourceProtocols are normally owned by the ResourceSystem, so we don't have to delete it later.
NxOgre::ResourceSystem::getSingleton()->openProtocol(new Critter::OgreResourceProtocol());
// Connect to the Remote Debugger - if there is one.
mWorld->getRemoteDebugger()->connect();
// Create the scene
NxOgre::SceneDescription scene_description;
scene_description.mGravity = NxOgre::Vec3(0, -9.81, 0);;
scene_description.mUseHardware = false;
mScene = mWorld->createScene(scene_description);
// Set default material properties
mDefaultMaterial = mScene->getMaterial(0);
mDefaultMaterial->setRestitution(0.1f);
mDefaultMaterial->setDynamicFriction(0.9);
mDefaultMaterial->setStaticFriction(0.5);
// Plane creation
mScene->createSceneGeometry(NxOgre::PlaneGeometryDescription());
// Create the rendersystem.
mRenderSystem = new Critter::RenderSystem(mScene, mSceneMgr);
NxOgre::MaterialIdentifier material = mDefaultMaterial->getIdentifier();
BoxDescription forcebox(Vec3(3.784, 1.75, 2.0), 0, Vec3(0, 4, -0.975));
mCubeTwo = mRenderSystem->createBody(forcebox, NxOgre::Vec3(2, 5, 0), "container.mesh");
betajaen
15-12-2010 09:32:11
Are you using it for the Character Controller? Because if not, you should be using Detritus.
obuil
15-12-2010 09:48:37
i expect using the Character Controller,
in order to use this,i write above for the first step.
betajaen
15-12-2010 10:18:10
Do you realise; The code on there is the first version, even I wouldn't use it for anything serious.
As for you error. You have a null pointer exception somewhere. You need to trace it in your IDE.