Package limn.render3d
Class OrbitController
java.lang.Object
limn.render3d.OrbitController
- All Implemented Interfaces:
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
ConstructorsConstructorDescriptionOrbitController(Camera camera) Orbitscameraaround its own target: drag rotates, wheel zooms. -
Method Summary
Modifier and TypeMethodDescriptionvoiddrag(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.voidzoom(float amount) Wheel/zoom byamount(positive = zoom in).
-
Constructor Details
-
OrbitController
Orbitscameraaround its own target: drag rotates, wheel zooms.
-
-
Method Details
-
radiusLimits
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:CameraControllerDrag by(dx, dy)device-independent points (since the last event).- Specified by:
dragin interfaceCameraController
-
zoom
public void zoom(float amount) Description copied from interface:CameraControllerWheel/zoom byamount(positive = zoom in).- Specified by:
zoomin interfaceCameraController
-