Cinemachine
CinemachinePathBaseEvaluateTangentAtUnit Method |
Get the tangent of 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 Vector3 EvaluateTangentAtUnit( float pos, CinemachinePathBasePositionUnits units )
function EvaluateTangentAtUnit(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: Vector3World-space direction of the path tangent. Length of the vector represents the tangent strength
See Also