From 28f25f4c82ef7e712bc0c22f9ccb054efa584275 Mon Sep 17 00:00:00 2001 From: Jonathan Bradley Date: Mon, 13 Jan 2025 11:20:26 -0500 Subject: pke: save full handle, editor: rotate camera --- editor/editor.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'editor') diff --git a/editor/editor.cpp b/editor/editor.cpp index af45fda..024e855 100644 --- a/editor/editor.cpp +++ b/editor/editor.cpp @@ -418,8 +418,11 @@ void PkeEditor_Tick(double delta) { double axis4 = -(rotCCCount * delta) + (rotCCount * delta); if (axis4 != 0.0) { glm::quat gRot; + btQuaternion bRot; BulletToGlm(trfm.getRotation(), gRot); gRot = glm::quat(glm::vec3(0.f, 0.f, axis4)) * gRot; + GlmToBullet(gRot, bRot); + trfm.setRotation(bRot); NullCamera.stale = NullCamera.stale | PKE_CAMERA_STALE_ROT; } -- cgit v1.2.3