liabru/matter-js

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

Opened this issue · 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?

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