rockytriton
14-02-2009 02:13:25
Hi, I want to add the Ogre robot mesh to this. I don't need it to act like a ragdoll, I just want the model to fall onto the ground when I put it above ground like the zombie does.
at the bottom of the OgreNewtonFrameListener::OgreNewtonFrameListener() I put the following code:
This adds the robot, but how to add add it to the world so that it will fall. It's positioned right where the zombie is now, a little above the ground, but it doesn't fall.
at the bottom of the OgreNewtonFrameListener::OgreNewtonFrameListener() I put the following code:
mEntity = mSceneMgr->createEntity("Robot", "robot.mesh");
// Create the scene node
mNode = mSceneMgr->getRootSceneNode()->
createChildSceneNode("RobotNode", Vector3(0.0f, 3.0f, 0.0f));
mNode->attachObject(mEntity);
mNode->setScale(0.1f, 0.1f, 0.1f);
This adds the robot, but how to add add it to the world so that it will fall. It's positioned right where the zombie is now, a little above the ground, but it doesn't fall.