I am making a space simulator game (with Bullet physics engine, although I assume it does not matter). The spaceships are represented as a set connected "parts" in form of cubes. Some of these cubes are motors, which move the spaceship through applying force to a rigid body in one of six directions (axes of Cartesian coordinate system). I am now trying to make a polished system of driving the spacecraft. I thought about it and I know that I need to code two separate types of movement:
- translation without rotation (even with a non-symmetric spaceship) and
- rotation without translation.
I have been trying to wrap my mind around this problem and/or google it, but I have failed. Maybe you can point me in the right direction?
Thanks a lot,