Skip to content

raylib.UpdateCameraPro

JoeStrout edited this page Apr 29, 2026 · 2 revisions

Update camera movement, movement/rotation values should be provided by user

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