Set up the angular Velocity of GameObject?


#1

are there any ways to change or set up the angular velocity of GameObject?

the problem is when I apply the force to GameObjects, they are rotate very fast. I tried to set different of mass value - same result…


#2

Apply a smaller force?

I believe the mass is only used for collisions.

You also have Angular Damping that will control how fast the rotation stops (but maybe you don’t want that?)


#3

Given the angular velocity, you should be able to calculate the requires impulse (i.e large force during one frame) you need to apply.


#4

uh… I found the reason of strange fast-rotation…
the problem was in position value in apply_force message.
I used the default (0,0,0) position of the GameObject after adding by Factory.