-
Notifications
You must be signed in to change notification settings - Fork 2
raylib.UpdateCameraPro
JoeStrout edited this page Apr 29, 2026
·
2 revisions
Update camera movement, movement/rotation values should be provided by user
| Parameter | Default Value | Note |
|---|---|---|
| camera | ||
| movement | [0, 0, 0] | |
| rotation | [0, 0, 0] | |
| zoom | 0 |
None.
camera = {"position": [0, 2, 10], "target": [0, 2, 0], "up": [0, 1, 0], "fovy": 45, "projection": 0}
move = [0, 0, 0]
if raylib.IsKeyDown(raylib.KEY_W) then move[2] = -0.1
raylib.UpdateCameraPro camera, move, [0, 0, 0], 0