[belnding]problem with the position my body

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:

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!

betajaen

06-05-2008 20:20:05

World* mWorld = new NxOgre::World("log: yes, time-controller");

This problem/mis-understanding has been posted a few times in the last few days. Searching would of been so much easier.

maroxe

06-05-2008 20:23:53

ok sorry! i watedto search but i didn't find any keyword!
ahother question, what time-controller does?
PS: i am a newbie in nxogre, so forgive me a lot :oops: .

FriedChicken

09-05-2008 08:10:56

time-controller specifies who will control each step of physics simulation