Method EvaluateTangentAtUnit
EvaluateTangentAtUnit(float, PositionUnits)
Get the tangent of the curve at a point along the path.
선언
public Vector3 EvaluateTangentAtUnit(float pos, CinemachinePathBase.PositionUnits units)
파라미터
타입 | 이름 | 설명 |
---|---|---|
float | pos | Postion along the path. Need not be normalized. |
CinemachinePathBase.PositionUnits | units | The unit to use when interpreting the value of pos. |
반환
타입 | 설명 |
---|---|
Vector3 | World-space direction of the path tangent. Length of the vector represents the tangent strength |