Documentation

Unity Engine

Download Unity

Unity Engine

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

public static quaternion4 QuatWeight(this quaternion4 q, float4 weight)

Parameters

The quaternion4 to weight.

weight

The weight of each lane, one value in each lane.

Returns

Type

Description

quaternion4The 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.