diff options
| author | Jonathan Bradley <jcb@pikum.xyz> | 2025-01-13 11:20:26 -0500 |
|---|---|---|
| committer | Jonathan Bradley <jcb@pikum.xyz> | 2025-01-13 11:20:26 -0500 |
| commit | 28f25f4c82ef7e712bc0c22f9ccb054efa584275 (patch) | |
| tree | ba228083b5ce8fac780c92378b40418635bc1e3c /editor | |
| parent | cd08d8490bde91c36a6c7a60a27bed0bd0e2e033 (diff) | |
pke: save full handle, editor: rotate camera
Diffstat (limited to 'editor')
| -rw-r--r-- | editor/editor.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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; } |
