Skip to main content

Vector2.Reflect(Vector2 inDirection, Vector2 inNormal)

Reflects a vector off the vector defined by a normal.

Parameters:

NameTypeDescription
inDirectionVector2inDirection
inNormalVector2inNormal

Returns:

typeDescription
Vector2result

Usage

---@type Vector2
local inDirection;

---@type Vector2
local inNormal;


local val0 = Vector2:Reflect(inDirection, inNormal)