KaijuEngine/kaiju

[EDITOR] Camera snaps when rotating in 3D

Open

#790 创建于 2026年5月10日

在 GitHub 查看
 (5 评论) (0 反应) (1 负责人)Go (194 fork)auto 404
editorgood first issue

仓库指标

Star
 (4,569 star)
PR 合并指标
 (PR 指标待抓取)

描述

On any project, in the 3D editor view, when rotating the camera using right-click, the camera snaps in the direction of the cursor away from the center

To Reproduce

  1. Open any project
  2. Enter 3D View
  3. Right click the main window whilst currently moving the mouse
  • Note: This only occurs when actively moving the mouse. If you right-click, and then move your mouse, it functions as expected.

Likely cause Since the snap is proportional to the cursor's distance and direction from the screen center, the issue is likely that the engine believes you moved the cursor that far in the first frame.

A simple solution (if this is the case), is to simply ignore the first frame of rotation, letting the cursor first snap to the center.

Platform OS: Linux Mint Kaiju Version: Nightly (10th May 2026) - Windows Version (ran through Wine)

https://streamable.com/jba0sb

贡献者指南