Modular spaceship control
- by SSS
I am developing a physics based game with spaceships.
A spaceship is constructed from circles connected by joints. Some of the circles have engines attached.
Engines can rotate around the center of circle and create thrust.
I want to be able to move the ship in a direction or rotate around a point by setting the rotation and thrust for each of the ship's engines.
How can I find the rotation and thrust needed for each engine to achieve this?