Kibergx

Results 4 comments of Kibergx

So you want to create like a moving rectangle, and players can jump on it and walk on it? The second part of your message very confusing to me, maybe...

Render.element: "A reference to the element where the canvas is to be inserted (if render.canvas has not been specified)". So I guess if you remove the "element: document.body," line it...

You need to call applyForce before each update [(https://brm.io/matter-js/docs/classes/Body.html#method_applyForce)](https://brm.io/matter-js/docs/classes/Body.html#method_applyForce) The position vector should point towards the other body's center, and you can calculate the force based on the two body's...

I am new with this lib, but my only idea is to manually set the collusionFilter for every body (https://brm.io/matter-js/docs/classes/Body.html#property_collisionFilter.category). 32 is the maximum unique collision category. Or if you...