Skip to content

Api > Vector2 > Reflect()


Vector2.Reflect(Vector2 inDirection, Vector2 inNormal)⚓︎

Reflects a vector off the vector defined by a normal.

Parameters:⚓︎

Name Type Description
inDirection Vector2 inDirection
inNormal Vector2 inNormal

Returns:⚓︎

type Description
Vector2 result

Usage⚓︎

---@type Vector2
local inDirection;

---@type Vector2
local inNormal;


local val0 = Vector2:Reflect(inDirection, inNormal)