2D Mechanisms examples?

I’m looking for some examples of basic 2D mechanisms in JS. Simple animations showing rotary and linear motors, linkages, pistons, etc. I would love to find some kind of sandbox that allows simple experiments, but just some JS examples would be good. Yes, I’ve done a fair amount of web searches, but I haven’t found anything I’m looking for. The Arm example in the p5.js web editor is kind of what I’m looking for in simplicity and I know I could just start hacking at it, but I’d prefer to find more examples.
I want to do some simple mockups for automata toys, so that is where I am headed with this.
Thank you.

2 Likes

I personally haven’t tried it out, but it has a great examples page. Take a look:

A Spring demo:

http://schteppe.github.io/p2.js/demos/springs.html

1 Like

Very much what I was looking for! Thank you.