How to determine which thrusters to turn on to rotate the ship?

Posted by migimunz on Game Development See other posts from Game Development or by migimunz
Published on 2012-10-25T18:43:21Z Indexed on 2012/10/25 23:17 UTC
Read the original article Hit count: 164

Filed under:
|

The configuration of the ship changes dynamically, so I have to determine which thruster to turn on when I want to rotate the ship clockwise or counter clockwise. The thrusters are always axis aligned with the ship (never at an angle) and are either on or off. Here's one of the possible setups:

http://i.stack.imgur.com/GSBSH.png

What I've tried so far is to visualize the firing vector and the direction vector to the center of mass of the ship:

http://i.stack.imgur.com/ZzNzi.png

Unfortunately, I didn't get very far with that.

© Game Development or respective owner

Related posts about math

Related posts about physics