Firstborn/Library/PackageCache/com.unity.cinemachine@2.8.9/Documentation~/CinemachineSmoothPath.md
Schaken-Mods b486678290 Library -Artifacts
Library -Artifacts
2023-03-28 12:24:16 -05:00

1.7 KiB

Cinemachine Smooth Path

A Cinemachine Smooth Path is a component that defines a world-space path, consisting of an array of waypoints. Each waypoint has position and roll settings. Cinemachine uses Bezier interpolation to calculate positions between the waypoints to get a smooth and continuous path. The path passes through all waypoints. Unlike Cinemachine Path, first and second order continuity is guaranteed, which means that not only the positions but also the angular velocities of objects animated along the path will be smooth and continuous.

Properties:

Property: Function:
Resolution Path samples per waypoint. Cinemachine uses this value to calculate path distances.
Looped If checked, then the path ends are joined to form a continuous loop.
Resolution Path samples per waypoint. This is used for calculating path distances.
Appearance The settings that control how the path appears in the Scene view.
Path Color The color of the path when it is selected.
Inactive Path Color The color of the path when it is not selected.
Width The width of the railroad tracks that represent the path.
Looped Check to join the ends of the path to form a continuous loop.
Path Length The length of the path in distance units (read-only).
Selected Waypoint Properties for the waypoint you selected in the Scene view or in the Waypoints list.
Waypoints The list of waypoints that define the path. They are interpolated using a bezier curve.
Position Position in path-local space.
Roll Defines the roll of the path at this waypoint. The other orientation axes are inferred from the tangent and world up.