updated codes of camera

This commit is contained in:
2022-03-09 18:40:31 +08:00
parent b369a3ec48
commit 5e4b154bf4
3 changed files with 3 additions and 3 deletions

View File

@@ -354,7 +354,7 @@ protected:
Vector2f pos(x,y);
Vector2f gap=pos-mouse_last_pos;
camera->Rotate(gap/180.0f,(cur_time-last_time)*5);
camera->Rotate(gap);
last_time=cur_time;
mouse_last_pos=Vector2f(x,y);