Jump to content

Matter JS is undefined - trying to recreate sandbox example


adammarcwilliams
 Share

Recommended Posts

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

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...