Skip to main content

Plane.SetNormalAndPosition(Vector3 inNormal, Vector3 inPoint)

Sets a plane using a point that lies within it along with a normal to orient it.
Note that the normal must be a normalised vector.

Parameters:

NameTypeDescription
inNormalVector3The plane's normal vector.
inPointVector3A point that lies on the plane.

Usage

---@type Plane
local plane;

---@type Vector3
local inNormal;

---@type Vector3
local inPoint;


plane.SetNormalAndPosition(inNormal, inPoint)