cameraManipulator

var cameraManipulator: Manipulator?

Helper that enables camera interaction similar to sketchfab or Google Maps.

Needs to be a callable function because it can be reinitialized in case of viewport change or camera node manual position changed.

The first onTouch event will make the first manipulator build. So you can change the camera position before any user gesture.

Clients notify the camera manipulator of various mouse or touch events, then periodically call its getLookAt() method so that they can adjust their camera(s). Three modes are supported: ORBIT, MAP, and FREE_FLIGHT. To construct a manipulator instance, the desired mode is passed into the create method.