Method EvaluatePositionAtUnit
EvaluatePositionAtUnit(float, PositionUnits)
Get a worldspace position of a point along the path
Declaration
public Vector3 EvaluatePositionAtUnit(float pos, CinemachinePathBase.PositionUnits units)
Parameters
Type | Name | Description |
---|---|---|
float | pos | Postion along the path. Need not be normalized. |
CinemachinePathBase.PositionUnits | units | The unit to use when interpreting the value of pos. |
Returns
Type | Description |
---|---|
Vector3 | World-space position of the point along at path at pos |