Better thruster allocation
The input from the player (movement + rotation) needs to be translated into power for each individual thrusters.
The exact solution is a linear optimization problem:
- Maximize movement along requested direction
- Keeping power of each thruster between 0.0 and 1.0
- While having 0 movement across orthogonal axis
- While having 0 induced rotation
This is a difficult problem.
It is ok to fake it in my case. Poorly constructed ships will not go the required direction, and that is fine.
However my current approach is very simple and should probably be improved: 02cb3833.