phaser-slopes icon indicating copy to clipboard operation
phaser-slopes copied to clipboard

TypeError: pair.collision.edge is undefined, can't access property "position" of it

Open wolfinabox opened this issue 7 years ago • 4 comments

When colliding with certain tiles (currently, just "L shaped collision" ones), the game is frozen, and an error is thrown in the console: TypeError: pair.collision.edge is undefined, can't access property "position" of it

wolfinabox avatar Sep 07 '18 03:09 wolfinabox

Ah interesting, I didn't consider concave tile shapes. That might be the cause of this.

Thanks, I'll look into it when I get the time.

hexus avatar Sep 08 '18 18:09 hexus

By the way, until then I'd recommend using only convex tile shapes. It's an assumption made by the plugin at the moment, and I should mention that in the readme when it's embellished.

hexus avatar Sep 12 '18 23:09 hexus

Ah yes, it's not much of a problem (I'm way too early in development to need super accurate collisions anyway). Just let me know if there's anything else you need that'd help work the bug out!

wolfinabox avatar Sep 12 '18 23:09 wolfinabox

Cheers! If I have any problem reproducing it, I'll mention so here. :+1:

hexus avatar Sep 13 '18 00:09 hexus