Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wolfinabox opened this issue Sep 7, 2018 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@wolfinabox
Copy link

wolfinabox commented Sep 7, 2018

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

@hexus
Copy link
Owner

hexus commented Sep 8, 2018

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 hexus added the bug Something isn't working label Sep 8, 2018
@hexus
Copy link
Owner

hexus commented Sep 12, 2018

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.

@wolfinabox
Copy link
Author

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!

@hexus
Copy link
Owner

hexus commented Sep 13, 2018

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

@hexus hexus self-assigned this Mar 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants