adammarcwilliams Posted March 9, 2018 Share Posted March 9, 2018 Hey guys, I'm trying to recreate the example code in Phaser 3 from this sample code as it seems Matter.js is much better suited for what I'm trying to achieve than Arcade and wanted to just get an example working locally. http://labs.phaser.io/edit.html?src=src\physics\matterjs\attractors.js When I run this in my own project I get ` this.matter is undefined ` Is there a separate script I'm meant to include like there was in the dist folder for 'phaser-arcade-physics.js' on the repo https://github.com/photonstorm/phaser/tree/master/dist Link to comment Share on other sites More sharing options...
PixelPicoSean Posted March 9, 2018 Share Posted March 9, 2018 Phaser.js and Phaser.min.js contain all the 3 physics engine, use them instead. Link to comment Share on other sites More sharing options...
Recommended Posts