supertux/{collision.[ch]pp,sector.cpp}: Store velocities in the constraints.
authorflorianf <florianf@837edb03-e0f3-0310-88ca-d4d4e8b29345>
Mon, 22 Feb 2010 10:21:22 +0000 (10:21 +0000)
committerflorianf <florianf@837edb03-e0f3-0310-88ca-d4d4e8b29345>
Mon, 22 Feb 2010 10:21:22 +0000 (10:21 +0000)
commitc0c32f5b9a87a5e6bf701d7bdb6764c2484bb736
tree6ac505403232400bb2fb3285efdb7dc9f00301f8
parent318576dc04afe7be8cddedb42bee605d61f59742
supertux/{collision.[ch]pp,sector.cpp}: Store velocities in the constraints.

Assume Tux is falling down with speed 2 and onto a downward moving tilemap with
speed 1. With the current constraints, his vertical motion will be set to zero,
possibly resulting in a hopping motion.

With normal, solid tiles this reset cannot be observed due to the way ground
movement is handled. With unisolid tiles, this results in said hopping.

This commit should be a non-functional change, i.e. the implementation differs
but the overall functionality should be unchanged.

git-svn-id: http://supertux.lethargik.org/svn/supertux/trunk/supertux@6389 837edb03-e0f3-0310-88ca-d4d4e8b29345
src/supertux/collision.cpp
src/supertux/collision.hpp
src/supertux/sector.cpp