3 ms·
Should be fixed with https://github.com/phoboslab/underrun/commit/2477c5a45f5be4db10be21f7afb37b32600b67f1 https://github.com/phoboslab/underrun/commit/2477c5a4
by phoboslab 8y ago
Should be fixed with https://github.com/phoboslab/underrun/commit/2477c5a45f5be4db10be21f7afb37b32600b67f1 https://github.com/phoboslab/underrun/commit/2477c5a45f5be4d...
Rolling back X and Z when any collision occurs would prevent you from "hugging" (i.e. sliding along) walls. The problem was that a near corner collision wasn't correctly detected when the player didn't collide in X direction in the last frame (last_x) but does collide in the current frame (t.x), allowing the player to move into the corner in Y direction.
Thanks!