Skip to content

Commit

Permalink
Update orbit camera to avoid delta spikes (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
aglitchman authored Oct 31, 2024
1 parent 4b3c772 commit 7076823
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/render/orbit_camera/orbit_camera.script
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function update(self, dt)
end

function on_input(self, action_id, action)
if action_id == hash("touch") then
if action_id == hash("touch") and not action.pressed then
self.yaw = self.yaw - action.dx * self.rotation_speed
self.pitch = self.pitch + action.dy * self.rotation_speed
elseif action_id == hash("wheel_up") then
Expand Down

0 comments on commit 7076823

Please sign in to comment.