Creating a Chain Between 2 points using Ammo JS

I was trying to create a generic solution for making a link/bridge between 2 Vectors. This is what I end up creating:

Both ends are draggable so you can move red and blue sphere to see how chain behave:

Here is a fancier version with shadows, you can also drag ends here:

i could not find a good use for it so I am sharing it as a future reference for creating a physical link between 2 vectors.


This is so cool!! Thank you :smiley: