anura-engine / anura

Anura Engine
Other
386 stars 80 forks source link

(Bug) Friction's effect is reduced in the +y direction #94

Open Autofire opened 9 years ago

Autofire commented 9 years ago

In a module of mine, I found that the object moved much faster when velocity_y was positive. (Down) Using the same velocity magnitude, -y and both x directions are all the same; only +y is reduced. I checked it with debug(velocity_x, velocity_y).

This isn't much of a problem in a sidescroller, where +y is specifically down (and the objects would be falling), but it causes issues in a topdown game where the down direction is actually south.

I've found that a workaround is just to just use add(y, very_low_movespeed), but this will probably lead to problems. (Note that I am not setting velocity_y, I was adding to it. This was because my game will probably have things like gusts of wind that would push the player around, and setting velocity_y would get around it.)

DDR0 commented 9 years ago

I have looked at the FSON/FFL involved. As far as I can tell, this is a bug in the engine.