Package limn.render3d

Class OrbitController

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

public final class OrbitController extends Object implements CameraController
Orbits a Camera around its target: horizontal drag spins the azimuth, vertical drag tilts the elevation (clamped near the poles), the wheel dollies in/out. Seeded from the camera's current eye/target so it takes over smoothly.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Orbits camera around its own target: drag rotates, wheel zooms.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    drag(float dx, float dy)
    Drag by (dx, dy) device-independent points (since the last event).
    radiusLimits(float min, float max)
    Clamps how close and how far the zoom can go, in scene units.
    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

    • OrbitController

      public OrbitController(Camera camera)
      Orbits camera around its own target: drag rotates, wheel zooms.
  • Method Details

    • radiusLimits

      public OrbitController radiusLimits(float min, float max)
      Clamps how close and how far the zoom can go, in scene units.
    • 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