Compara dues simulacions de doble pèndol que s'executen simultàniament.
Pot modificar els angles d'inici i la gravetat. El pèndol dret es pot arrossegar amb una força de ressort clicant amb el mouse prop d'ell. Pot canviar la separació entre els pèndols per a comparar-los més fàcilment.
The two simulations being run are:
- The theoretically accurate
RigidDoublePendulumSim
shown in blue on the left.
- The equivalent double pendulum using the
2D Rigid Body Physics Engine
shown in red on the right.
The purpose is to show that the two are closely equivalent, which demonstrates the
accuracy of the physics engine. Although two very different simulation methods are
used, we get pretty much the exact same result.
The angles shown in the graphs are modified for the physics engine version so that
they are equivalent to the corresponding RigidDoublePendulumSim angles.
Also available are:
open source code,
documentation and a
simple-compiled version
which is more customizable.