Class CinemachinePath
Defines a world-space path, consisting of an array of waypoints, each of which has position, tangent, and roll settings. Bezier interpolation is performed between the waypoints, to get a smooth and continuous path.
Inherited Members
Namespace: Cinemachine
Assembly: solution.dll
Syntax
[DocumentationSorting(DocumentationSortingAttribute.Level.UserRef)]
[AddComponentMenu("Cinemachine/CinemachinePath")]
public class CinemachinePath : CinemachinePathBase
Fields
Name | Description |
---|---|
m_Looped | If checked, then the path ends are joined to form a continuous loop |
m_Waypoints | The waypoints that define the path. They will be interpolated using a bezier curve |
Properties
Name | Description |
---|---|
DistanceCacheSampleStepsPerSegment | When calculating the distance cache, sample the path this many times between points |
Looped | True if the path ends are joined to form a continuous loop |
MaxPos | The maximum value for the path position |
MinPos | The minimum value for the path position |
Methods
Name | Description |
---|---|
EvaluateOrientation(float) | Get the orientation the curve at a point along the path. |
EvaluatePosition(float) | Get a worldspace position of a point along the path |
EvaluateTangent(float) | Get the tangent of the curve at a point along the path. |