| cgv_fly_path | R Documentation |
Smoothly animate the camera along a sequence of 3D waypoints using Catmull-Rom spline interpolation.
cgv_fly_path(viewer, positions, duration = 5, loop = FALSE)
viewer |
External pointer returned by |
positions |
Numeric matrix with 3 columns (x, y, z), one row per waypoint. |
duration |
Total animation duration in seconds. |
loop |
Logical: loop the animation? |
No return value, called for side effects: starts a Catmull-Rom
spline camera animation through the given waypoints. Returns
NULL invisibly.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.