-
Notifications
You must be signed in to change notification settings - Fork 2
raylib.Vector3RotateByAxisAngle
JoeStrout edited this page Apr 29, 2026
·
2 revisions
Rotates a vector around an axis
| Parameter | Default Value | Note |
|---|---|---|
| v | [0, 0, 0] | |
| axis | [0, 1, 0] | |
| angle | 0 |
| Condition | Return Value |
|---|---|
| (always) | list |
v = [1, 0, 0]
axis = [0, 1, 0] // rotate around Y axis
angle = pi / 2 // 90 degrees
result = raylib.Vector3RotateByAxisAngle(v, axis, angle)
print result // approximately [0, 0, -1]