Angular Dampening Bug?

Jan 21, 2008 at 3:26 PM
Hey, I was testing a new system yesterday and I came across something which i think is a bug. If you set the angular dampening on the rigid body to be less than 1, and apply an initial rotation to the body before adding it to the quad tree, it will rotate back to reset it's self during the simulation...

I'll run through my code again to make sure I've not done anything odd on my end, but that does seem odd no?
Coordinator
Jan 23, 2008 at 12:00 AM
Edited Jan 23, 2008 at 1:41 PM
The formula to apply angular damping to rotation is:

rotation = rotation * (angular damping ^ elapsed time)

EDIT : made a mistake. elapsed time of zero would result in one, giving no damping.

Either the rotation is really small and angular damping is cancelling it out or angular damping is too large and causing the same. Try puting a breakpoint in the RigidBody.Integrate method where the angular damping is being applied and see if any of these are true. Let me know what you find out.

Thanks.
Jan 26, 2008 at 5:17 PM
Edited Jan 26, 2008 at 5:23 PM
Is rotation angular velocity or the Euler orientation of the rigid body?

Nevermind... LOL, I only need to read my other thread. :)