ClementM
22-01-2009 10:25:35
Hi !
I have a Ogre3d scene, with a terrain and a object (a dice). I manage to put a body for my dice (cube), with a mass, and with the gravity of World, i can see my dice fall down to my terrain.
My problem is to implement correctly the collision between my dice and my terrain. I don't know how to link my terrain with a NxOgre's body or NxOgre's actor.
In addition, when my dice is on the terrain, the half od dice is through the terrain
Thanks a lot for yours future answers.
I have a Ogre3d scene, with a terrain and a object (a dice). I manage to put a body for my dice (cube), with a mass, and with the gravity of World, i can see my dice fall down to my terrain.
My problem is to implement correctly the collision between my dice and my terrain. I don't know how to link my terrain with a NxOgre's body or NxOgre's actor.
In addition, when my dice is on the terrain, the half od dice is through the terrain
mWorld = new NxOgre::World("FrameListener: Yes, time-controller:ogre, log: none");
mScene = mWorld->createScene("Dada", mSceneMgr,"gravity: yes, floor: yes, controller: accumulator, renderer: ogre");
Thanks a lot for yours future answers.