moiri / kobold

jump and run on web page
2 stars 0 forks source link

rework inAir #42

Closed moiri closed 9 years ago

moiri commented 10 years ago

At the moment on every tick the method inAir is called, even if the movable is standing on a solid. This should be split in a method checking if a collision occurs and a method inAir.

moiri commented 10 years ago

By doing this rework, the collision check is now done on the colliders with a size corresponding to the last speed. This produces some imprecisions (as the movable may land inside of objects). To prevent this, a proper state machine should be designed to improve the readability and prevent this kind of errors.

moiri commented 9 years ago

This imprecision was actually due to this bug 8a313c6 (probably). However, there is still work going on to increase the readability and performance.