Mathematica 9 is now available

Documentation / DynamicVisualizer / Creating Animations /

6.1 Creating Many Objects

Before creating an example animation, we summarize how to move and rotate an object.

When changing the location of an object, you define the transform between the origin in the external frame and the origin of the object. For example, suppose you moved a cube with the lower corner at {5, 5, 5}, using LocationRule{1, 1, 1}. The lower corner would now be displayed at {6, 6, 6}.

An object is rotated about its invariant point, which is defined in the object's local coordinates. If the invariant point is not set explicitly, unpredictable movements may occur when creating animations, because the point is set either to the object's center or to the object's origin, depending on the preferences.

To illustrate these concepts, you create a simple pendulum consisting of a ball and support string.

In[1]:=

In[2]:=

First, you create the sphere graphic to represent the ball.

In[3]:=

In[6]:=

Next, you create the ball in Dynamic Visualizer with appropriate colors and smooth shading. Because you are using the ball in an animation, you also prevent it from moving or rotating.

In[7]:=

Out[7]=

You also specify the invariant point. The ball rotates about the top of the pendulum at {0, 0, 6}.

In[8]:=

Next, you create the string between the anchor and the top of the ball. In Dynamic Visualizer, very thin lines rendered as wireframes look best. You set invariant point to the top of the pendulum.

In[9]:=

In[10]:=

Out[10]=

Finally, you create a checkered floor just below the base of the ball.

In[11]:=

In[12]:=

Out[12]=



Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.