I have a jetpack that boosts users in certain directions. I have a problem where I need to split up a certain speed and divide it distribute it between the X and Y axes according to the direction the user is facing.
The problem is: I don't know how powerful to make each individual value because vectors don't add together in a simple manner.
Distributing a velocity of 300 on the X axis and 300 on the Y axis appears to be the exact same speed as distributing 400 on just the X axis.
When I think about it more, could it possibly be working off of a right triangle? According to Pythagorean's theorem, 424.26 would be the same velocity on the X axis as 300 and 300 would be on both the X and the Y axes.
If this is the case, what formula would I need to run my velocity through to distribute the velocities between X and Y so as not to exceed the 424.26 max velocity? Such as if I had 150 on the X, what would I need on the Y? It's not as clean as 300/300.
Would that still be working off of the Pythagorean Theorem and I just need to find the hypotenuse for both the X and the Y according to 424.26 or something like that?