I’m having issues with finding total velocity instead of having xVelocity and yVelocity. Would the correct strategy be to find the square root of the squares added, like with hypotenuses, or some other strategy? Here’s my code:
I’ve done a lot of testing and keep getting the error message the double doesn’t match with float. I just need a total velocity, but can’t figure out why the square root doesn’t work.