ドキュメント

Unity Engine

Unity Engine

normalized

The unit vector in the direction of the current vector.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public Vector3 normalized { get; }

Remarks

This property holds a normalized vector based on the current vector. The normalized vector has a Vector3.magnitude of 1 and is in the same direction as the current vector.
If the current vector is too small to be normalized, then the value of
normalized
is the zero vector. A vector is too small to be normalized if it is considered equal to the zero vector.
Note that this does not modify the current vector. To modify and normalize the current vector, use the instance version of the Vector3.Normalize method.
Additional Resources: Vector3.Normalize.