I would like to be able to toggle on/off the orbit camera script with a button press from the user.
Does anyone know a way to do that?
I need to be able to turn on/off the orbital camera when the user is doing lerp and slerp animations of the camera as the user clicks around different parts of the application because the orbit script interferes with lerp and slerp.
This is the orbit camera script I have modified slightly for my own purposes - https://developer.playcanvas.com/en/tutorials/orbit-camera/