Open daigz1224 opened 1 year ago
the main view camera is controlled by editor.viewManager.mainView.orbitPerspective, which has a keydown
handler doing exactly what you are implementing. maybe you can call it directly in your code (by first exposing the keydown handler). or try to make the keydown handler of orbitPerspective work again.
@naurril thx, I found the orbitPerspective
in the fusion branch, this branch is the latest dev branch, isn't it?
it is orbit_perspective
in other branches
I add key shortcuts "wasd" in the main view, to change the position (e.g, only x, y for convenience) of
this.viewManager.mainView.camera
, with respect to its quaternion. It works but still has a problem.The problem is that if I click and drag the left mouse button immediately after I press "wasd", the scene quickly deflects. I think this problem may be related to the behavior of mouse and the change of camera.quaternion, any suggestion? many thx🫡