[ODE] Stabilization force
Anders Backman
andersb at cs.umu.se
Sat Jan 1 22:54:20 MST 2005
sorry, forgot to specify a proper subject of my posting...
Hi Im trying to add a stabilizer force to an object that I want to be
primarly upright, that is, it should be pretty hard to tilt over, a small
tilt angle should result that it "bounces back" to upright position...
I guess addTorque should work, the problem is how to calculate the torque
that I should apply...
Rotation around the object z-axis can be ignored, its just the x and y angle
that should be "corrected"...
Now where should I start?
I could calculate the euler angles from the objects matrix, and use that to
calculate the torque, but that only results in a really jerky behaviour,
what I need is something more damped...
Any ideas are welcome.
________________________________________________________________
Anders Backman Email: andersb at cs.umu.se
HPC2N/VRlab Phone: +46 (0)90-786 9936
Umea university Cellular: +46 (0)70-392 64 67
S-901 87 UMEA SWEDEN Fax: +46 90-786 6126
http://www.cs.umu.se/~andersb
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.296 / Virus Database: 265.6.7 - Release Date: 2004-12-30
More information about the ODE
mailing list