I’m getting a very inconsistent error with collision between the player and map (once every 50 games or so) and it seems to be fairly random (happens on multiple areas of the map). I’m using the matter js plugin to detect colllision between the player and tilemap. Here is the error:
Uncaught TypeError: Cannot read properties of undefined (reading ‘x’)
at Vector.dot (phaser.js:19515:1)
at SAT._projectToAxis (phaser.js:63700:1)
at SAT._overlapAxes (phaser.js:63669:1)
at SAT.collides (phaser.js:63566:1)
at Detector.collisions [as detector] (phaser.js:63473:1)
at Engine.update (phaser.js:185515:1)
at World.update (phaser.js:186911:1)
at EventEmitter.emit (phaser.js:1935:1)
at Systems.step (phaser.js:45126:1)
at SceneManager.update (phaser.js:91489:1)
Let me know if you have any idea why this might be happening!! Thanks.