This is documentation for an obsolete product.
Current products and services

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.



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



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.



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


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.




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