kirwyd
12-08-2008 11:22:48
I just intergrated NxOgre into my 3d Ogre application by adding these lines:
When I start I see the cube moving away. Setting mass to zero fixes this.
I am using no gravity and no floor to simulate outer space. If there is a better way to do this let me know.
I am using NxOgre for collisions between the player and other objects. If I have to use mass: 0 on all my actors how will my actors act when colliding with others?
NxOgre::World* mWorld = new NxOgre::World("time-controller: ogre");
NxOgre::Scene* mScene = mWorld->createScene("Space", "gravity: no, floor: no, renderer: ogre");
NxOgre::Actor* mActor = mScene->createActor("Atlas", new NxOgre::Sphere(0.5), Ogre::Vector3(3, 10, -2), "mass: 10");
mWorld->createDebugRenderer(sceneMgr);
When I start I see the cube moving away. Setting mass to zero fixes this.
I am using no gravity and no floor to simulate outer space. If there is a better way to do this let me know.
I am using NxOgre for collisions between the player and other objects. If I have to use mass: 0 on all my actors how will my actors act when colliding with others?