Category "matter.js"

How to delete matter js object on collision dynamically phaser js

I'm making a platformer game in which there is player and some powerups. To check the collision I used matterjs collisionactive function: this.matter.world.on("

How to access a constraint by its label in matter-js?

I am currently building a game with react native game engine and matter-js. I want to be able to access the constraint by its label. I currently created it: let

How to create a random ground in matter.js

I am creating the ground of a game using a Perlin noise function. This gives me an array of vertices. I then add a vertex at the front that is {x:0 y: WORLD_HEI

MatterJS allow bodies to pass through yet still trigger collision

I want certain rigid bodies to be able to pass through eachother, i.e. no collision response. Though I still want the collision to detect, and trigger an event