Skip to content

Cannot read property 'overlaps' of undefined #368

@XWILKINX

Description

@XWILKINX

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions