Class Rotate
A set of functionality to extend on Unity's rotation based methods.
Inheritance
System.Object
Rotate
Namespace: GDX.Mathematics
Syntax
[VisualScriptingCompatible((short)8)]
public static class Rotate
Methods
| Improve this Doc View SourceTowards(Quaternion, Quaternion, Single, Single)
Create a quaternion based on a rotation from targetQuaternion
to
otherQuaternion
.
Declaration
public static Quaternion Towards(Quaternion targetQuaternion, Quaternion otherQuaternion, float rotationRate, float elapsedTime)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.Quaternion | targetQuaternion | The source UnityEngine.Quaternion. |
UnityEngine.Quaternion | otherQuaternion | The destination UnityEngine.Quaternion. |
System.Single | rotationRate | How fast should the rotation occur. |
System.Single | elapsedTime | How long has elapsed since the rotation started. |
Returns
Type | Description |
---|---|
UnityEngine.Quaternion | A rotational value. |
Exceptions
Type | Condition |
---|---|
UnsupportedRuntimeException | Not supported on DOTS Runtime. |