Skip to content

Commit

Permalink
Update movement_desktop_turn.gd (GodotVR#677)
Browse files Browse the repository at this point in the history
fix desktop turn not using turn speed in 1 axis
  • Loading branch information
pietru2004 authored Sep 15, 2024
1 parent da566ff commit bcc520b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ func physics_movement(delta: float, player_body: XRToolsPlayerBody, _disabled: b
left_right -= deadzone * sign(left_right)
player_body.rotate_player(smooth_turn_speed * delta * left_right)
player_body.camera_node.rotation_degrees.x=clamp(
player_body.camera_node.rotation_degrees.x+mouse_move_vector.y,
player_body.camera_node.rotation_degrees.x+smooth_turn_speed * mouse_move_vector.y,
-89.999,
89.999)
mouse_move_vector=Vector2.ZERO
Expand Down

0 comments on commit bcc520b

Please sign in to comment.