liabru / matter-js

a 2D rigid body physics engine for the web ▲● ■
MIT License
16.78k stars 1.96k forks source link

How to simulate prismatic joint in matter-js like in box2d #472

Open Mirodil opened 7 years ago

Mirodil commented 7 years ago

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 joint?

kassbohm commented 2 years ago

Hi.

The following joints are used in Box2D. These are useful for students studying Mechanical Engineering etc.

Why are these joints (constraints) not present in matter.js?

https://github.com/shakiba/planck.js/wiki/Joint