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.
Tokamak player problem
Blitz3D Forums/Blitz3D Userlibs/Tokamak player problem 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
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
Thanks for the link, but i really wouldnt know how to implement that into my code...
Could anyone help me with this problem?
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.