Skip to main content

Vector3.Reflect(Vector3 inDirection, Vector3 inNormal)

Reflects a vector off the plane defined by a normal.

Parameters:

NameTypeDescription
inDirectionVector3the inDirection vector is treated as a directional arrow coming in to the plane
inNormalVector3The inNormal vector defines a plane

Returns:

typeDescription
Vector3Reflected vector

Usage

---@type Vector3
local inDirection;

---@type Vector3
local inNormal;


local val0 = Vector3:Reflect(inDirection, inNormal)