Documentation

Unity Engine

Download Unity

Unity Engine

Distance

Get/set the distance of the plane from the origin. May be a negative value.
Read time 1 minuteLast updated 7 hours ago

Definition

public float Distance { readonly get; set; }

Remarks

It is assumed that the normal is unit length. If you set a new plane such that Ax + By + Cz + Dw = 0 but (A, B, C) is not unit length, then you must normalize the plane by calling Plane.Normalize.