-
Notifications
You must be signed in to change notification settings - Fork 2
raylib.MatrixRotate
JoeStrout edited this page Apr 29, 2026
·
2 revisions
Create rotation matrix from axis and angle NOTE: Angle should be provided in radians
| Parameter | Default Value | Note |
|---|---|---|
| axis | [0, 1, 0] | |
| angle | 0 |
| Condition | Return Value |
|---|---|
| (always) | map |
// Rotate 45 degrees around the Z axis
axis = [0, 0, 1]
angle = 45 * (pi / 180)
r = raylib.MatrixRotate(axis, angle)