Skip to content

Commit

Permalink
Fixed a Mat4 x Vec3 in the Mouse Flight tutorial.
Browse files Browse the repository at this point in the history
  • Loading branch information
astrofra committed May 17, 2022
1 parent 0c0ada9 commit c347fa0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion game_mouse_flight.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion game_mouse_flight.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c347fa0

Please sign in to comment.