Pretend to be Spider-Man in this updated tutorial with Matter Physics constraints you can shoot out.

Article by Richard Davey. Posted on 15th Aug 2019.   @photonstorm

image

Emanuele Feronato returns to Matter Physics in a new tutorial: "This week I showed you a HTML5 prototype of “Fling” game built with Phaser and Matter.js but it was flawed by various Matter.js issues.

Actually we can’t talk about “issues” because it was me trying to force the way Matter.js handles the constraints, but in the end I wasn’t satisfied.

So I studied a bit how constraints work and wrote about three ways to deal with constraints.

Finally I sorted out things and now I got something enjoyable.

Click the mouse to fire the hook towards mouse pointer, click again when swinging to release it, then click again to fire another hook and pretend to be Spider-Man."

Read More