DefaultCameraManipulator

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.

Constructors

Link copied to clipboard
constructor(manipulator: Manipulator)
constructor(orbitHomePosition: Position? = null, targetPosition: Position? = null)

Functions

Link copied to clipboard
open override fun getTransform(): Transform
Link copied to clipboard
open override fun grabBegin(x: Int, y: Int, strafe: Boolean)
Link copied to clipboard
open override fun grabEnd()
Link copied to clipboard
open override fun grabUpdate(x: Int, y: Int)
Link copied to clipboard
open override fun scrollBegin(x: Int, y: Int, separation: Float)
Link copied to clipboard
open override fun scrollEnd()
Link copied to clipboard
open override fun scrollUpdate(x: Int, y: Int, prevSeparation: Float, currSeparation: Float)
Link copied to clipboard
open override fun setViewport(width: Int, height: Int)
Link copied to clipboard
open override fun update(deltaTime: Float)