Creates a camera path.
The camera to control with this path. The camera's eye, look, and up will be sampled when saving frames and updated when loading frames.
Configuration options
Optionalframes?: CameraPathFrame[]Initial frames to add to the path
Protected_eyeProtected_framesProtected_lookProtected_upThe target camera.
Spline for camera eye positions.
Frames in insertion order.
Spline for camera look positions.
Spline for camera up vectors.
Adds a frame to the path.
Vector values are copied before storage.
Time for the new frame
Eye position
Look position
Up vector
Removes all frames and clears all spline control points.
Loads the interpolated camera state at the given path time.
Input time is normalized using the first and last frame times.
Time along the path
Samples the path at normalized parameter t.
Normalized parameter in the range [0..1]
Target eye vector to write into
Target look vector to write into
Target up vector to write into
Captures the current camera state as a new frame.
Time for the new frame
Redistributes frame times so camera motion is closer to constant speed.
Uses distance between consecutive eye positions.
Total duration to distribute across all frames
Sequence of camera frames that can be sampled or played back over time.
Stores frame data plus spline curves for eye, look, and up.