My body rotate too fast, how can I rotate it more slowly ?

aneuryzma

20-02-2006 16:02:47

My body rotate too fast, how can I rotate it more slowly ?


static void ForceCallback( OgreNewt::Body* me )
{
me->addTorque( Vector3(0,1,0) );
}

haffax

20-02-2006 18:10:48

Uhm, by adding less torque?

Also be sure to give your body a proper inertia tensor and you should read up on inertia and torque in a physics text book. You need to understand the concept behind it.

walaber

20-02-2006 18:55:07

you must understand torque is acceleration so if you keep adding torque, an object will spin faster and faster and faster. you need to monitor the omega of the object, and only add torque when you can to speed up, and possibly add negative torque when you want to slow down.

koirat

08-03-2008 21:45:09

If i AddTorque for example nothing happenes, but if i change omega my box body starts to spin. If i change velocity body starts to move. What can i do to move my body using Torque ??

nullsquared

09-03-2008 01:50:42

If i AddTorque for example nothing happenes, but if i change omega my box body starts to spin. If i change velocity body starts to move. What can i do to move my body using Torque ??
Add more torque. Constantly. Doing just one addition of torque will do nothing, as it accelerates - it's not some kind of instant velocity.