Skip to content

Api > Vector3 > Reflect()


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

Reflects a vector off the plane defined by a normal.

Parameters:⚓︎

Name Type Description
inDirection Vector3 the inDirection vector is treated as a directional arrow coming in to the plane
inNormal Vector3 The inNormal vector defines a plane

Returns:⚓︎

type Description
Vector3 Reflected vector

Usage⚓︎

---@type Vector3
local inDirection;

---@type Vector3
local inNormal;


local val0 = Vector3:Reflect(inDirection, inNormal)