Unknown Force

raeez

24-02-2007 21:21:24

I have a problem where my objects are being sucked into random directions
What could cause this? I dont know what information i can give to help but I have set gravity


setGravity (Ogre :: Vector3 (0, - 9.81, 0)); )


and created a stepper

// a few constants for our stepper
const Ogre::Real max_frame_time = Ogre::Real(1.0 / 4);
const Ogre::Real time_scale = Ogre::Real(1.0);
const Ogre::Real frame_rate = Ogre::Real(1.0 / 60);

// create our stepper
stepper = new OgreOde::ForwardFixedInterpolatedStepHandler (this,
OgreOde::StepHandler::FastStep,
time_step, //time_step is at 3 since any less and we get sucked into oblivion too quickly to see whats going on
frame_rate,
max_frame_time,
time_scale);

stepper->setAutomatic(OgreOde::StepHandler::AutoMode_PostFrame,root);


Any help would be appreciated, and yes i am new to OgreOde and physics API's in general

rewb0rn

24-02-2007 23:26:42

What happens if you dont set gravity?

raeez

25-02-2007 09:03:43

Since that post I have tried that, and the objects still start moving in random directions...