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

This PR adds built-in `Matter.Runner` support for: - fixed timestep by default - high refresh rate displays with fixed timestep - sub-stepping for higher quality simulations - performance budgets -...

need-test
alpha-build

Using compound bodies with Bodies.fromVertices does not work it just shows a filled in shape. ![image](https://github.com/liabru/matter-js/assets/37249924/41fa5c06-9c19-466a-a45e-0d98cef1c9a7) the set of vertices is: { x: 0.454546, y: 70 }, { x: 0.454546,...

The attractor works for BODYs created via Composite.stack(), but does not apply to BODYs created with Body.circle(). So I moved the bunny(BODY) creation code later than wind(attractor). After that it...

[Video](https://www.veed.io/view/6c4d5583-5734-4460-ab49-5ecb18ffe4a6?sharingWidget=true&panel=share)

I'm working on adapting matter.js to a side scroller. http://codepen.io/lilgreenland/pen/ozXNWZ?editors=0010 I made the player from sensor parts and regular body parts. I made the part of the player called headSensor...

investigate

I'm trying to get deterministic behavior, which is modifiable by changing a seed, I've found this SO page: https://stackoverflow.com/questions/59210236/outcome-always-different-in-matter-js-physics-engine I've got no problem with determinism, it's that changing that seed...

https://github.com/liabru/matter-js/issues/1242 ## Bug reproduction path: The issue arises when creating two circles with a `radius` of `0` passed into `Bodies.circle()`. In this scenario, the `body.mass` becomes `0`, leading to a...

For some reason Render.setSize is not present in the build nor the docs. This is confusing, because there is a [renderResize](https://github.com/liabru/matter-js/blob/master/examples/renderResize.js) example which uses above method. For now copy pasting...

This isn't really that big of an issue, but I hope if anyone stumbles onto the same issue I had, they wouldn't have to pull their hair out. Given 2...

I saw in your documentation that you have settings for webpack, but I don't know how to make them in Vite https://vitejs.dev/, please would your help with that be very...