- // **********************************************************
- // Start movement.
- // **********************************************************
- if(this.play == true)
- this.Moving.openMovementBlock();
- // *************************************************
- // Draw the fidge body.
- // *************************************************
- this.Moving.drawWoundTube();
- this.Body.drawBody();
- // **********************************************************
- // End movement.
- // **********************************************************
- if (this.play == true)
- this.Moving.closeMovementBlock();
- // **********************************************************
- // Draw trajectory.
- // **********************************************************
- this.Moving.drawTrajectory();
- // *************************************************
- // Add light.
- // *************************************************
- this.Scene.addAmbientLight(this.Body.LightOn);
- // Display the 3D scene.
- this.glControl1.SwapBuffers();