Taroimo Science Lab日本語

All simulationsMenu

← All simulations

Physics-Engine Playground: Ropes, Chains and Bridges

Play

Build a rope, a chain, a bridge and a row of beads on springs with planck.js, a physics engine ported from Box2D, and play with them. Grab objects with a finger or the mouse and swing them around, drop things on them, or change the strength of gravity to see how connected bodies move.

Last updated
Update history (2)
  • Improved The readout "Center-of-mass speed of the last object you held" now keeps showing that object's speed after you let go. Lift the weight on the rope, let it go, and compare its speed at the bottom of the swing with its speed where it turns around.
  • Improved Added the preset "Chain hung by both ends (catenary)". A chain let go from the shape of a parabola settles into a new shape; overlay a catenary and a parabola of the same length and compare the gaps in numbers. "Distance between ends" changes how deep it sags, and "Damping" changes how quickly it settles.
See all updates →
  • Drag an object to pull it with a spring-like string called a mouse joint. When you let go, it keeps moving with the speed it had.
  • "Center-of-mass speed of the last object you held" shows the speed of the last object you grabbed. It keeps showing that object's speed after you let go, until you reset or change the preset. A dashed ring stays on that object.
  • Press "Drop an object" to drop a box or a ball from above. You can drop up to 30, and Reset clears them.
  • Choose the rope, the chain, the bridge, the row of beads or the chain hung by both ends (catenary) under "Preset".
  • Change the gravitational acceleration gg with the slider. For the row of beads it starts at 0.
  • Turn on "Show joints" to see the pin points and rods that connect the bodies.
  • With "Chain hung by both ends (catenary)", change the spacing with "Distance between ends", and turn on "Overlay catenary and parabola" to draw a catenary and a parabola with the same length as the chain. "Damping cc" sets how strongly the swinging is damped.