Tokamak player problem

Blitz3D Forums/Blitz3D Userlibs/Tokamak player problem

dwfait(Posted 2005) [#1]
How would you stop a rigid body (box) from 'falling over'? For example, if you have your player as a rigid body, you wouldnt want it falling over.


Sweenie(Posted 2005) [#2]
There is one thing called a "stay upright constraint" which applies torque to the body if it's tilting.
That is, just like most springs are used to push or pull an object it can also be used to turn an object instead.

The cool thing is that based on the springstiffness and damping you could make the character sway if hit by something.

I don't know specifically how to set one up but google for springs and you should be able to figure it out.
Gaffer mentions it somewhere in this tutorial...
http://69.55.229.29/articles/Springs.html


dwfait(Posted 2005) [#3]
Thanks for the link, but i really wouldnt know how to implement that into my code...


dwfait(Posted 2005) [#4]
Could anyone help me with this problem?


Carrot(Posted 2005) [#5]
Why not just use a sphere? You can ignore the roll or pitch when positioning you're player model so that it always stays upright.