cgv_fly_path: Fly Camera Along a Path

View source: R/camera.R

cgv_fly_pathR Documentation

Fly Camera Along a Path

Description

Smoothly animate the camera along a sequence of 3D waypoints using Catmull-Rom spline interpolation.

Usage

cgv_fly_path(viewer, positions, duration = 5, loop = FALSE)

Arguments

viewer

External pointer returned by cgv_viewer.

positions

Numeric matrix with 3 columns (x, y, z), one row per waypoint.

duration

Total animation duration in seconds.

loop

Logical: loop the animation?

Value

No return value, called for side effects: starts a Catmull-Rom spline camera animation through the given waypoints. Returns NULL invisibly.


cgvR documentation built on May 12, 2026, 1:06 a.m.