Api > Plane > SetNormalAndPosition()
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:⚓︎
Name | Type | Description |
---|---|---|
inNormal | Vector3 | The plane's normal vector. |
inPoint | Vector3 | A point that lies on the plane. |
Usage⚓︎
---@type Plane
local plane;
---@type Vector3
local inNormal;
---@type Vector3
local inPoint;
plane.SetNormalAndPosition(inNormal, inPoint)