Body.LinearDamping has more effect on the X axis than Y?

May 2, 2013 at 9:45 PM
Edited May 2, 2013 at 9:49 PM
Hi guys.

I'm currently using Farseer to make a Top Down game so I've created my World with a gravity vector of (0, 0). This has currently worked great for everything.

Until I came to player movement, take a look at this example code:

http://pastebin.com/7HxM44Kj

So the movement speed and the max speeds are the same for both axis, as is the code. However, when I actually move my character the max speed is much faster in the Y axis than the X axis. I'm not sure why this is.

Is there a better way to cap the maximum speed? This has its problems as ideally I'd want the overall speed vector to have a maximum, as 50 X and Y allows a vector of 100 overall. I want 50 overall no matter the combination.