CinemachinePathBase.EvaluatePositionAtUnit Method

Cinemachine

CinemachinePathBaseEvaluatePositionAtUnit Method

Get a worldspace position of a point along the path

Namespace:  Cinemachine
Assembly:  Cinemachine (in Cinemachine.dll) Version: 2.0.0.0 (2.0.0.0)
Syntax
public Vector3 EvaluatePositionAtUnit(
	float pos,
	CinemachinePathBasePositionUnits units
)
function EvaluatePositionAtUnit(pos, units);

Parameters

pos
Type: SystemSingle
Postion along the path. Need not be normalized.
units
Type: CinemachineCinemachinePathBasePositionUnits
The unit to use when interpreting the value of pos.

Return Value

Type: Vector3
World-space position of the point along at path at pos
See Also