The base class for all input controllers. A controller consumes an InputFrame carrying
move and rotate deltas and produces a Pose: attach sets the pose it starts
from, update applies a frame and returns the current pose, and detach releases
it. The application applies the returned pose to an entity. FlyController,
OrbitController and FocusController implement three ways of doing this.
// each frame, after filling the frame's move and rotate deltas from your sources constresult = controller.update(frame, dt); camera.setPosition(result.position); camera.setEulerAngles(result.angles);
The base class for all input controllers. A controller consumes an InputFrame carrying
moveandrotatedeltas and produces a Pose: attach sets the pose it starts from, update applies a frame and returns the current pose, and detach releases it. The application applies the returned pose to an entity. FlyController, OrbitController and FocusController implement three ways of doing this.Example