# Constructing Mathlets Quickly using LiveGraphics3D - Animations

Author(s):
Jonathan Rogness and Martin Kraus

Parametrized graphics can be very useful, but at times you might want certain graphics primitives to move in a prearranged fashion. LiveGraphics3D facilitates this by providing another format for its input. Instead of

Graphics3D[ <em>primitives</em>, <em>options</em> ]

we use the form

Animate[ Graphics3D[ <em>primitives</em>, <em>options</em> ], {t, <em>tmin</em>, <em>tmax</em>, <em>tstep</em>} ]

This is demonstrated in the following applet, which shows a very simple model of a solar system. The three points in the applet are located at {x0,y0,z0}, {x1,y1,z1} and {x2,y2,z2}; these coordinates are automatically adjusted by LiveGraphics3D to create an animation. Look at the parameters for the independent and dependent variables to see if you can predict what will happen as tincreases from 0 to 2&pi;; move the mouse pointer over the applet to start the animation. In some browsers it may be necessary to click on the applet before the motion begins.

Resulting Applet:

As you can verify, LiveGraphics3D still allows you to rotate or zoom in and out while the animation is running. It is also possible to combine animations and parametrized graphics. Notice that x0, y0 and z0 are independent variables in this example. If you double-click the applet to stop the animation, you can drag the orange point {x0,y0,z0} anywhere in the bounding box; double-click the applet again to restart the system in its new location. If you wish to move through an animation frame-by-frame, click the picture with the right mouse button and drag the mouse horizontally. (In MacOS using a mouse with a single button, you can step through the animation frame-by-frame by holding down the Command or Apple key, clicking with the single button, and dragging horizontally.)

Jonathan Rogness and Martin Kraus, "Constructing Mathlets Quickly using LiveGraphics3D - Animations," Loci (May 2006)

## JOMA

Journal of Online Mathematics and its Applications