A small physics engine (dubbed JSVerlet). The engine is a work in progress, this a demo of what it can do at the moment.
- Left click to drag points (corners, joints etc).
- Right click to delete a point.
- Hold ctrl to enter edit mode, release to exit.
When in edit mode:
- Click to add points, hold alt to make fixed points.
- New points will join to the last point by default.
- Press shift to unselect a point.
- Select any two points to join them.
Source here: codepen.io/suffick/pen/fhjvk