updated codes of camera

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

2
CMCore

@ -1 +1 @@
Subproject commit 090fab9c0eca5fa157f1f3280713fd42954a21a2
Subproject commit d1f7b588a3dc839a68776c4931225ff49edb7495

@ -1 +1 @@
Subproject commit 647c2a557c96301eed8860bb933c84b289f32de3
Subproject commit 59f5b9dcb58de3697d2a20448d9910dc0ae608b7

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);