- Home /
How to balance torque on rigidbody induced by addforce
So I've been completely over ambitious and started building a space combat game that features modular ship construction. Now, being a big fan of physics I'm keen to use physics as part of the goal is to create a realistic impression of being in space.
So I've got the rotation driven by addrelative torque and the thrusters providing addforce. However, due to the engine direction of thrust not being prefectly through the ship's centre of mass there is an induced rotation. So the ship need a gyroscope (obviously).
I've had a few stabs and actually got it to work to counter the thrust but once I rotated the ship the results got somewhat interesting, usually involving some interesting tumbling about, but not a gentle deceleration back to zero.
just for ha-has I plopped this in;
http://answers.unity3d.com/questions/10425/how-to-stabilize-angular-motion-alignment-of-hover.html
This brings the ship back to the upright position. I think if I could adapt this somehow I could be on to something, but could use some suggestions - at this point, any suggestions. I'm really at a loss. Thanks in advance.
Your answer
Follow this Question
Related Questions
How to limit the motion direction of a GameObject? 1 Answer
How to make foot don't cross the ball? 0 Answers
Camera gets flung off of the map when the player collides with certain objects. 0 Answers
How to make Rigidbody.AddForce less delayed in Unity3D? 0 Answers
Avoid bouncing when ground move down 1 Answer