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

Hi, I'm trying to create a capital letter "A" as an SVG shape for use with Matter.js but the shape always displays incorrectly. [CodePen here.](https://codepen.io/ChrisBup/pen/ZErNLpg) I know Matter.js can't always...

I was trying to create Body with the method [Matter.Bodies.fromVertices](https://brm.io/matter-js/docs/classes/Bodies.html#method_fromVertices). I installed [poly-decomp](https://github.com/schteppe/poly-decomp.js) package to enable automatic concave vertices decomposition and supply the the method [Matter.Bodies.fromVertices](https://brm.io/matter-js/docs/classes/Bodies.html#method_fromVertices) with vertices from drawing....

Hello, I am trying to apply force to a ball when I click on a arrow or press the right arrow key but it gives me a type error. This...

By default Matter.js adds an event listener to the canvas for `contextmenu` and calls `preventDefault` to hide the menu. But I need to show the menu. How can I remove...

feature-request

I tried to create a body out of two svg parts. svgOne is the green one and svgTwo is the small red "H". But as soon as they are displayed...

question

### Features - improves all round consistency of the engine with respect to timing and frame-rates (delta) - adds several new velocity and speed functions to `Matter.Body` - adds `updateVelocity`...

improve
discuss
need-test

Hi! I've been playing around with matter-js and noticed that when I switched from my laptop to a high-refresh rate display, the speed of objects falling under gravity increased dramatically....

feature-request
question
need-more-info

I'm trying to create an uneven ground using vertices, but for some reason `ground` is always `undefined`. Not sure what I'm doing wrong. ``` const points = [] for(let i...

I've noticed a major issue when playing around with matter.js (**when sleeping is enabled**)- moving a body by manually applying forces seems to break the engine, causing sleeping bodies to...

investigate