moiri / kobold

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

Jump and crouch -> Possibility to end up in a solid collider #49

Closed moiri closed 9 years ago

moiri commented 9 years ago

If the character is crouched and wants to stand up in still the air yet very close to the ground, the character my end up partly inside the solid collider. Moving to a side at the same time will lead to erratic character moving as it is set to the side border of the solid collider (due to a overlap with one of the side colliders of the character). Another problem is, that the side colliders are not updated when crouching due to the bug "fix" #44.

moiri commented 9 years ago

First part of the comment is not correct: The position of the character is updated before any check on the colliders is performed. The character will not stand inside the solid collider on collision check but on top of it. so there is no problem. The bug was caused due to the non updated side colliders when crouched/standing