A mini tutorial from Emanuele Feronato about creating Matter Phyics Bodies.

Posted on 17th Apr 2018. Follow @phaser_ and get the Phaser World newsletter.

image

From Emanuele Feronato: "One of the new Phaser 3 features is Matter.js, a 2D rigid body physics engine for the web written directly in JavaScript – this means it wasn’t ported from another language like it has been done with Box2D.

As usual, the first example of a physics engine is the “create a crate / remove a crate” script.

Touch the canvas in an empty spot to create a crate, or touch a crate to remove it."

Read More


The first book on the creation of HTML5 cross platform games using Phaser 3 and other free software.
  • By Emanuele Feronato
  • 155 Pages
  • 28 Source Code Examples
  • Build a complete game from start to finish
  • Cross Platform
  • Scaling for devices
Buy Now
$19