QuatWeight(quaternion4, float4)
Weights each rotation of the quaternion4 toward the identity rotation, for additive blending.
Read time 1 minuteLast updated 5 hours ago
Definition
- Type: Method
- Namespace: Unity.Animations
- Assembly: UnityEngine.AnimationCoreModule
public static quaternion4 QuatWeight(this quaternion4 q, float4 weight)
Parameters
Returns
Type | Description |
|---|---|
| quaternion4 | The weighted and normalized quaternion4. |
Remarks
The method scales the x, y, and z components by the weight, then normalizes the result. It doesn't scale the w component. A weight of 0 gives the identity rotation.