Orbit. Cannot reset the camera? [SOLVED]


#1

When I try to reset the camera (in relation to the orbit-demo: https://playcanvas.com/editor/scene/475886)
I make alterations to the orbitCamera.js and mouseInput.js in such a way, that they are both being initialized {by initialize(); }.
Problem: after pressing a button that does so, the camera always returns to the last mouse-inputs position (there is a little flick, before the return though).

I want to hear if there is a quickfix/simple solution, before I move into showing all my scriplings and interscript-connections.


#2

The original Model Viewer Kit that uses the same Orbit Camera code has a reset function on the keyboard input: https://playcanvas.com/project/604735/overview/another-test-model-viewer

Code: https://playcanvas.com/editor/code/604735?tabs=17889629


#3

works like a charm - thx