diff --git a/game_mouse_flight.lua b/game_mouse_flight.lua index 3fad2e2..26c5252 100644 --- a/game_mouse_flight.lua +++ b/game_mouse_flight.lua @@ -103,7 +103,7 @@ while not keyboard:Down(hg.K_Escape) do -- update gameplay elements (plane & camera) update_plane(mouse_x_normd, mouse_y_normd) - update_chase_camera(setting_camera_chase_offset * plane_node:GetTransform():GetWorld()) + update_chase_camera(plane_node:GetTransform():GetWorld() * setting_camera_chase_offset) -- update scene and submit it to render pipeline scene:Update(dt) diff --git a/game_mouse_flight.py b/game_mouse_flight.py index 27dfe68..965da1c 100644 --- a/game_mouse_flight.py +++ b/game_mouse_flight.py @@ -105,7 +105,7 @@ def update_chase_camera(target_pos): # update gameplay elements (plane & camera) update_plane(mouse_x_normd, mouse_y_normd) - update_chase_camera(setting_camera_chase_offset * plane_node.GetTransform().GetWorld()) + update_chase_camera(plane_node.GetTransform().GetWorld() * setting_camera_chase_offset) # update scene and submit it to render pipeline scene.Update(dt)