Skip to main content

Plane.ClosestPointOnPlane(Vector3 point)

For a given point returns the closest point on the plane.

Parameters:

NameTypeDescription
pointVector3The point to project onto the plane.

Returns:

typeDescription
Vector3A point on the plane that is closest to point.

Usage

---@type Plane
local plane;

---@type Vector3
local point;


local val0 = plane.ClosestPointOnPlane(point)