maroxe
06-05-2008 20:16:40
Hi,
i have tried to make up an application using the latest stable of nxogre, this my code:
i see the headogre in the widow, but the probleme is that:
its position is always Vector3(0, 0, 0) even if i passt Vector3(100,1000,5) as a parametre!
i have tried to make up an application using the latest stable of nxogre, this my code:
World* mWorld = new NxOgre::World("FrameListener: Yes, log: yes");
NxOgre::Scene* mScene = mWorld->createScene("Paris", "gravity: yes, floor: yes, controller: accumulator, renderer: ogre, renderUserData: mSceneMgr");
Entity *ent = mSceneMgr->createEntity("ent", "OgreHead.mesh");
NxOgre::Body* mBody = mScene->createBody("MyBody", new NxOgre::Cube(0.5f), Ogre::Vector3(100,1000,5), "model: ent, model-type: reference", "mass: 10");
i see the headogre in the widow, but the probleme is that:
its position is always Vector3(0, 0, 0) even if i passt Vector3(100,1000,5) as a parametre!