UnityQuaternionExtensions.SlerpWithReferenceUp Method

Cinemachine

UnityQuaternionExtensionsSlerpWithReferenceUp Method

This is a slerp that mimics a camera operator's movement in that it chooses a path that avoids the lower hemisphere, as defined by the up param

Namespace:  Cinemachine.Utility
Assembly:  Cinemachine (in Cinemachine.dll) Version: 2.0.0.0 (2.0.0.0)
Syntax
public static Quaternion SlerpWithReferenceUp(
	Quaternion qA,
	Quaternion qB,
	float t,
	Vector3 up
)
Cinemachine.Utility.UnityQuaternionExtensions.SlerpWithReferenceUp = function(qA, qB, t, up);

Parameters

qA
Type: Quaternion
First direction
qB
Type: Quaternion
Second direction
t
Type: SystemSingle
Interpolation amoun t
up
Type: Vector3
Defines the up direction

Return Value

Type: Quaternion

[Missing <returns> documentation for "M:Cinemachine.Utility.UnityQuaternionExtensions.SlerpWithReferenceUp(UnityEngine.Quaternion,UnityEngine.Quaternion,System.Single,UnityEngine.Vector3)"]

See Also