This project has moved and is read-only. For the latest updates, please go here.

How to slow object rotation and movement

Topics: Developer Forum, Project Management Forum, User Forum
Oct 18, 2009 at 2:23 AM

Well i basicly want to slow down rotation and movement.

Now i know that i can use the rotational drag and linear drag to do this but i want to be able to set those to variables using a float from 0 to 1 (0 being no drag and 1 being unable to rotate) and the same for movement.

Does anyone know the math to work out what to set the drags too?

Obviosly the mass of the object would have something to do with what the rotational drag would have to be set too to stop it rotating.
Also the other problem is if the rotational drag is too high then the engine crashes with a nan error. which is why i need to figure out the math to calculate the perfect drag to set based on a float from 0 to 1. 

Oct 18, 2009 at 2:44 AM

Robertdodd uploaded a patch that contains a motor enabled revolute joint. See if that fit your needs.

Oct 18, 2009 at 4:31 AM

I have motors that work but im trying to just slow down rotation using the rotational drag. Or am i missing something here?
how would a motor revolute joint solve this?

Oct 21, 2009 at 11:16 AM

Does anyone have any ideas
At the moment i am trying to slow rotation by dividing the rotational momentum by a certain amount each frame (1-2) to slow objects or let them go full speed.

Anyone got any better ideas?

Oct 21, 2009 at 11:38 AM

How about modifying the moment of inertia?