supertux/{collision.[ch]pp,sector.cpp}: Store velocities in the constraints.
authorFlorian Forster <supertux@octo.it>
Mon, 22 Feb 2010 10:21:22 +0000 (10:21 +0000)
committerFlorian Forster <supertux@octo.it>
Mon, 22 Feb 2010 10:21:22 +0000 (10:21 +0000)
commit54ebc2518ac4f4eb1fe1ee71c78fbe81a297c8ad
tree6ac505403232400bb2fb3285efdb7dc9f00301f8
parentc3777d70e689698b869965a196b83cb5067f7292
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.

SVN-Revision: 6389
src/supertux/collision.cpp
src/supertux/collision.hpp
src/supertux/sector.cpp