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

How do I bind a movable body to a line?

Open issuefiler opened this issue 2 years ago • 0 comments

It seems that a constraint only glues two points, not a point and a line. How do I restrict the movement of a body so that it only moves along a polyline “track?” I’m looking for efficient ways to achieve this with Matter.js.

Figure

issuefiler avatar Dec 06 '22 23:12 issuefiler