From 5e4b154bf4a3af25fe29ca68e5d07ccf14e88d14 Mon Sep 17 00:00:00 2001 From: hyzboy Date: Wed, 9 Mar 2022 18:40:31 +0800 Subject: [PATCH] updated codes of camera --- CMCore | 2 +- CMSceneGraph | 2 +- example/common/VulkanAppFramework.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CMCore b/CMCore index 090fab9c..d1f7b588 160000 --- a/CMCore +++ b/CMCore @@ -1 +1 @@ -Subproject commit 090fab9c0eca5fa157f1f3280713fd42954a21a2 +Subproject commit d1f7b588a3dc839a68776c4931225ff49edb7495 diff --git a/CMSceneGraph b/CMSceneGraph index 647c2a55..59f5b9dc 160000 --- a/CMSceneGraph +++ b/CMSceneGraph @@ -1 +1 @@ -Subproject commit 647c2a557c96301eed8860bb933c84b289f32de3 +Subproject commit 59f5b9dcb58de3697d2a20448d9910dc0ae608b7 diff --git a/example/common/VulkanAppFramework.h b/example/common/VulkanAppFramework.h index dc46a908..ddf5698f 100644 --- a/example/common/VulkanAppFramework.h +++ b/example/common/VulkanAppFramework.h @@ -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);