Skip to content

raylib.Vector3Reflect

JoeStrout edited this page Apr 29, 2026 · 2 revisions

Calculate reflected vector to normal

Parameters

Parameter Default Value Note
v [0, 0, 0]
normal [0, 1, 0]

Return value

Condition Return Value
(always) list

Notes

Example

v = [1, -1, 0]       // incoming direction
normal = [0, 1, 0]   // surface normal pointing up
result = raylib.Vector3Reflect(v, normal)
print result  // [1, 1, 0]

Clone this wiki locally