hexus / phaser-arcade-slopes

:triangular_ruler: A Phaser CE plugin that brings sloped tile collision handling to the Arcade Physics engine
MIT License
127 stars 16 forks source link

Square heuristics (#38) #39

Closed hexus closed 7 years ago

hexus commented 7 years ago

Implemented heuristics for square tiles to solve issue #38.

Also allowed bodies to enable & disable heuristics for themselves.

hexus commented 7 years ago

Covered most cases, but edge cases include entering and exiting square tiles at diagonals. This isn't really the right solution, but it helps. We can wait for 0.3.0 for the real fix.