Plane
Represents a plane in 3D space defined by a normal vector and a distance from the origin. Used for geometric calculations like intersection points, containment tests, and distance measurements. Unity's Plane Documentation
Properties
The shortest distance between the plane and the origin along its normal. Unity's Plane.distance Documentation
Returns a new plane with the normal vector flipped. Unity's Plane.flipped Documentation
The normal vector of the plane, perpendicular to its surface. Unity's Plane.normal Documentation
Methods
Finds the point on the plane closest to a given point. Unity's Plane.ClosestPointOnPlane Documentation
Flips the plane's normal vector. Unity's Plane.Flip Documentation
Returns
Calculates the shortest distance from a point to the plane. Unity's Plane.GetDistanceToPoint Documentation
Parameters
point
The point to calculate the distance from.
Returns
Determines which side of the plane a point lies on. Unity's Plane.GetSide Documentation
Parameters
point
The point to test.
Returns
Returns true if the point is on the same side as the plane's normal.
Determines if a ray intersects the plane and returns the intersection point distance.
Parameters
ray
Returns
Checks if two points are on the same side of the plane. Unity's Plane.SameSide Documentation
Recalculates the plane to contain three specified points. Unity's Plane.Set3Points Documentation
Sets the normal vector and a point on the plane to redefine its position. Unity's Plane.SetNormalAndPosition Documentation
Moves the plane by a specified offset in 3D space. Unity's Plane.Translate Documentation
Moves the plane by a specified offset in 3D space. Unity's Plane.Translate Documentation
Parameters
translation
The translation offset.
Returns
Updated 1 day ago