Closed moiri closed 9 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.
This imprecision was actually due to this bug 8a313c6 (probably). However, there is still work going on to increase the readability and performance.
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.