-
Notifications
You must be signed in to change notification settings - Fork 2
raylib.Vector3Reflect
JoeStrout edited this page Apr 29, 2026
·
2 revisions
Calculate reflected vector to normal
| Parameter | Default Value | Note |
|---|---|---|
| v | [0, 0, 0] | |
| normal | [0, 1, 0] |
| Condition | Return Value |
|---|---|
| (always) | list |
v = [1, -1, 0] // incoming direction
normal = [0, 1, 0] // surface normal pointing up
result = raylib.Vector3Reflect(v, normal)
print result // [1, 1, 0]