I’m working on a 2d spaceshooter game where the ship has boosters.
I want to determine how much force each booster needs to exert to move my ship with the maximum force in the direction it wants to go.
The ship may have any number of boosters but will probably be a small number like 2-10.
The rotations of the boosters are known but I can’t determine their magnitudes.
The magnitudes can be from 0(min) to lets say 5(max).
I got to a point where I made this equation:
directionToGo = ForceB1B1Direction + ForceB2B2Direction
But now that I’m getting more boosters I’m just thinking, ok to find what I want I have to brute force in min/middle/max forces for each direction to find the others I dunno.
So how would I go about doing this.
