Skip to content

raylib.UpdateCameraPro

JoeStrout edited this page Nov 16, 2026 · 3 revisions

Update camera by the given movement and rotation (Vector3s) and zoom, all provided by the caller. Updates the camera map in place

Parameters

Parameter Default Value Note
camera
movement [0, 0, 0]
rotation [0, 0, 0]
zoom 0

Return value

None.

Notes

Example

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

Clone this wiki locally