Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Normalize

Converts this quaternion to a quaternion with the same orientation but with a magnitude of 1.0.
Read time 1 minuteLast updated 6 days ago

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule

Normalize(Quaternion)

Converts this quaternion to a quaternion with the same orientation but with a magnitude of 1.0.
public static Quaternion Normalize(Quaternion q)

Parameters

Returns

Type

Description

Quaternion

Remarks

Note that this method changes the current quaternion. If you want to keep the current quaternion unchanged, use the Quaternion.normalized property instead.
If this quaternion is too small to be normalized it will be set to Quaternion.identity.
Additional Resources: Quaternion.normalized variable.

Normalize()

Converts this quaternion to a quaternion with the same orientation but with a magnitude of 1.0.
public void Normalize()

Remarks

Note that this method changes the current quaternion. If you want to keep the current quaternion unchanged, use the Quaternion.normalized property instead.
If this quaternion is too small to be normalized it will be set to Quaternion.identity.
Additional Resources: Quaternion.normalized variable.