UxrAnimatedTransform.RotationInterpolation Method (GameObject, UxrTransformRotationSpace, Vector3, Vector3, 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,
	Vector3 startEuler,
	Vector3 endEuler,
	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
startEuler
Type: Vector3
The start Euler angles
endEuler
Type: Vector3
The end Euler angles
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