UxrAnimatedTransform.RotationInterpolation Method (GameObject, UxrTransformRotationSpace, Quaternion, Quaternion, UxrInterpolationSettings, Action)

Starts a rotation using an interpolation curve

Namespace: UltimateXR.Animation.Transforms
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0

Syntax

C#

public static UxrAnimatedTransform RotationInterpolation(
	GameObject gameObject,
	UxrTransformRotationSpace space,
	Quaternion startRot,
	Quaternion endRot,
	UxrInterpolationSettings settings,
	Action finishedCallback = null
)

Parameters

 

gameObject
Type: GameObject
The GameObject to apply the rotation to
space
Type: UltimateXR.Animation.Transforms.UxrTransformRotationSpace
The space where the rotation takes place
startRot
Type: Quaternion
The start Quaternion orientation
endRot
Type: Quaternion
The end Quaternion orientation
settings
Type: UltimateXR.Animation.Interpolation.UxrInterpolationSettings
The interpolation settings with the curve parameters
finishedCallback (Optional)
Type: System.Action
Optional callback called when the animation finished. Only applies to non-looping animations.

Return Value

Type: UxrAnimatedTransform
The animation component

See Also

Reference

UxrAnimatedTransform Class
RotationInterpolation Overload
UltimateXR.Animation.Transforms Namespace