matter-js
matter-js copied to clipboard
How do I bind a movable body to a line?
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.