ドキュメント

Unity Engine

Unity Engine

distance

The distance measured from the Plane to the origin, along the Plane's normal.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public float distance { get; set; }

Remarks

Note, this means a positive value for distance results in the Plane facing towards the origin. A negative distance value results in the Plane facing away from the origin.
Additional Resources: Plane.normal.