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

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

Open Mirodil opened this issue 6 years ago • 1 comments

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?

Mirodil avatar Aug 17 '17 13:08 Mirodil

Hi.

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

  • Distance Joint (existing in Matter.Constraint)
  • Revolute Joint (existing in Matter.Constraint)
  • Prismatic Joint
  • Pulley Joint
  • Gear Joint etc.

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

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

kassbohm avatar Mar 06 '22 15:03 kassbohm