Cinemachine
CinemachinePathBaseEvaluateOrientationAtUnit Method |
Get the orientation the curve at a point along the path.
Namespace: Cinemachine
Assembly: Cinemachine (in Cinemachine.dll) Version: 2.0.0.0 (2.0.0.0)
Syntax
public Quaternion EvaluateOrientationAtUnit( float pos, CinemachinePathBasePositionUnits units )
function EvaluateOrientationAtUnit(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: QuaternionWorld-space orientation of the path
See Also