misterface
26-02-2006 13:42:42
me again
experimenting with the simple vehicle example (demo5).
absolutely fantastic!
I did some modifications: int scale=10;
so the code becomes:
the problem is the folowing: when I drive the car, I easily flips, so I tried to make the car heavier, didn't solve it... made the wheels heavier, didn't sole it... but gave other problems: the car became unstable en began to jump.
what paramater(s) should I alter when I change the size of the car?
experimenting with the simple vehicle example (demo5).
absolutely fantastic!
I did some modifications: int scale=10;
so the code becomes:
Ogre::Quaternion tireorient = Ogre::Quaternion(Ogre::Degree(0), Ogre::Vector3::UNIT_Y);
Ogre::Vector3 tirepos = scale * offset * Ogre::Vector3(x,0.5f,z);
Ogre::Vector3 pin(0,0,x);
Ogre::Real mass = 8; //30.0 standard
Ogre::Real width = 5;
Ogre::Real radius = scale*0.5;
Ogre::Real susShock = 200; //30.0 standard
Ogre::Real susSpring = 1000; //200.0 standard
Ogre::Real susLength = 2000; //1.2 standard
and
OgreNewt::Body* SimpleVehicle::makeSimpleBox( Ogre::Vector3& size, Ogre::Vector3& pos, Ogre::Quaternion& orient )
{
// base mass on the size of the object.
// (ZIE VANBOVEN!) standaard: Ogre::Real mass = size.x * size.y * size.z * 100.0;
Ogre::Real mass = 150
the problem is the folowing: when I drive the car, I easily flips, so I tried to make the car heavier, didn't solve it... made the wheels heavier, didn't sole it... but gave other problems: the car became unstable en began to jump.
what paramater(s) should I alter when I change the size of the car?