Package limn.render3d

Class FlyController

java.lang.Object
limn.render3d.FlyController
All Implemented Interfaces:
CameraController

public final class FlyController extends Object implements CameraController
A first-person "fly" camera: dragging looks around (yaw/pitch about the eye, pitch clamped near the poles) and the wheel flies forward/back along the view direction. Unlike OrbitController the eye moves through the scene rather than circling a fixed target. Seeded from the camera's current eye/target.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Free-look control of camera: drag aims, keys move.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    drag(float dx, float dy)
    Drag by (dx, dy) device-independent points (since the last event).
    moveSpeed(float unitsPerStep)
    Scene units travelled per movement step.
    void
    zoom(float amount)
    Wheel/zoom by amount (positive = zoom in).

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • FlyController

      public FlyController(Camera camera)
      Free-look control of camera: drag aims, keys move.
  • Method Details

    • moveSpeed

      public FlyController moveSpeed(float unitsPerStep)
      Scene units travelled per movement step.
    • drag

      public void drag(float dx, float dy)
      Description copied from interface: CameraController
      Drag by (dx, dy) device-independent points (since the last event).
      Specified by:
      drag in interface CameraController
    • zoom

      public void zoom(float amount)
      Description copied from interface: CameraController
      Wheel/zoom by amount (positive = zoom in).
      Specified by:
      zoom in interface CameraController