I'm currently trying to implement some basic character movement for a first person game I'm working on, but I've run into some problems.
Let's say there's an outside force that applies a velocity of Vector(500,60,0) to my character. For the sake of this example, let's say that force is constant and doesn't decrease.
Now the player starts moving in a random direction, like Vector(0.827846,0.560955,0).
How can I determine how much more the player can accelerate in that direction without going over the bounds of his max movement speed?
I basically need to retrieve the speed of the outside force in the player's movement direction.
Any suggestions?
How's this usually handled in other games?