First, let's take a look at the resulting animation effect, as shown in the figure.
1, create a random curve, as shown.
2. Create an X-axis "wheel".
3. Name the torus (wheel) you just created as wheel, and then press Trl+g to create an empty group named up.
4, drag the Animation range slider to 100 frames, and select up and curve1 (note Do not choose up the wheel). Go to the animated menu group, and then enter Animatemotion Pathsattach to Motion Path, creating an animated path along the axis of the z axis.
5, confirm the selected object is up (do not choose wheel), press the keyboard insert key, with the move tool to move up the axis of the object under the wheel, and then press the INSERT key to end the pivot point edit, play animation, can see the wheel on the curve moved.
6, then more complicated, we want to let the wheel along the actual distance of the path rolling, so the conclusion is: Wheel rotation (wheel). Rotate Z) =180*[the wheel through the distance/(wheel diameter *3. 14) The other is known in this formula, but the distance traveled by the wheel has to be accomplished in several steps.