cgv_fly_to: Fly Camera to a Node

View source: R/camera.R

cgv_fly_toR Documentation

Fly Camera to a Node

Description

Smoothly animate the camera to center on a given node. Requires that cgv_set_graph was called first (for node positions).

Usage

cgv_fly_to(viewer, node_id, duration = 1)

Arguments

viewer

External pointer returned by cgv_viewer.

node_id

Integer node identifier (1-based R index).

duration

Animation duration in seconds.

Value

No return value, called for side effects: starts a camera animation toward the chosen node. Returns NULL invisibly.


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