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.
상속된 멤버
네임스페이스: Cinemachine
어셈블리: solution.dll
구문
[DocumentationSorting(DocumentationSortingAttribute.Level.UserRef)]
[AddComponentMenu("Cinemachine/CinemachinePath")]
public class CinemachinePath : CinemachinePathBase
필드
| 이름 | 설명 |
|---|---|
| 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 |
프로퍼티
| 이름 | 설명 |
|---|---|
| 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 |
메서드
| 이름 | 설명 |
|---|---|
| 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. |