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

Cannot read property 'overlaps' of undefined #368

Open
XWILKINX opened this issue Sep 5, 2022 · 0 comments
Open

Cannot read property 'overlaps' of undefined #368

XWILKINX opened this issue Sep 5, 2022 · 0 comments

Comments

@XWILKINX
Copy link

XWILKINX commented Sep 5, 2022

Getting this error (seemingly) randomly:

TypeError: Cannot read property 'overlaps' of undefined
at Function.Broadphase.aabbCheck (/root/dinogen-mp/node_modules/p2/src/collision/Broadphase.js:92:27)
at NaiveBroadphase.Broadphase.boundingVolumeCheck (/root/dinogen-mp/node_modules/p2/src/collision/Broadphase.js:110:29)
at NaiveBroadphase.getCollisionPairs (/root/dinogen-mp/node_modules/p2/src/collision/NaiveBroadphase.js:41:53)
at World.internalStep (/root/dinogen-mp/node_modules/p2/src/world/World.js:632:29)
at World.step (/root/dinogen-mp/node_modules/p2/src/world/World.js:543:18)

Any ideas as to what causes this?

It only happens when using p2 through the npm module, and not with the version included in Phaser 2 CE, which I'm using client side.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant