matter-js icon indicating copy to clipboard operation
matter-js copied to clipboard

a 2D rigid body physics engine for the web ▲● ■

Results 212 matter-js issues
Sort by recently updated
recently updated
newest added

Hey! I am playing with the library, it's awesome! I am trying to figure out how I can draw a semicircle like these. I tried with the Bodies.circle, Bodies.rectangle and...

feature-request
question

For anyone who is interested in testing out angle constraints in 2022, I rebased @liabru's branch, it seems to still work pretty well! See #837 for the more thoughtful discussion...

The [Runner docs](https://brm.io/matter-js/docs/classes/Runner.html) say: > `Matter.Runner.[stop](https://brm.io/matter-js/docs/classes/Runner.html#method_stop)(runner) ` > Ends execution of `Runner.run` on the given runner, by canceling the animation frame request event loop. If you wish to only temporarily...

Hi ! A platformer game example would be awesome to begin with the engine. As I said in issue #335 , it can a bit hard to developp a platformer...

feature-request

I'm looking at the docs for [`Matter.Composites.stack`](https://brm.io/matter-js/docs/classes/Composites.html#method_stack). Most of the params are pretty intuitive, but I can't figure out what `xx` and `yy` mean? Are these documented?

improve
docs

For this code here: https://codesandbox.io/s/phaser-tilemap-post-5-04-platformer-step-2-forked-mkues?file=/js/player.js I added a simple on line 77: setTimeout(() => { Body.setParts(compoundBody, [mainBody, this.sensors.bottom]); }, 2000); .. and the character completely falls through the screen ignoring/not...

question
investigate

When render.options.pixelRatio is not integer, parseInt in line37 of Mouse.js causes mouse.pixelRatio to mismatch. Replacing parseInt(x,10) to Number(x) can resolve this issue.

Hello, Im working in a videogame made with MatterJS, Im using Bodies.fromVertices to create an irregular polygon. Its vertices should be dynamic, so should change in time. I already have...

Hi, I tried to simulate "prismatic joint" with `Matter.Constraint`, but it did not work. I'm trying to move the box along x axis. How can i achieve this type of...

feature-request