@Override
public void init() {
hinge.visualizer = new Visualizer( "FF0000", 1.0, true );
weight1.visualizer = new Visualizer( "00FF00", 1.0, true );
weight2.visualizer = new Visualizer( "FFFF00", 1.0, true );
rope1.visualizer = new ContourVisualizer( 0.25d, "0000FF", 2.0d, true );
rope2.visualizer = rope1.visualizer;
weight1.attachModel( new DistanceJoint( hinge ) );
weight2.attachModel( new DistanceJoint( weight1 ) );
}