All Implemented Interfaces:
Argument, SemiStatefulCommand, StatefulCommand<Pair<Vector3,Rotation>>

public class OrbitCmd extends Subcommand implements StatefulCommand<Pair<Vector3,Rotation>>
A no-args stateful command which orbits the camera around (itself) using OrbitMouseOwner to enable dragging capabilities.

As a StatefulCommand, orbit registers KeyEvent.VK_ENTER to finalise the rotation change and KeyEvent.VK_ESCAPE to abort the rotation change.

Aliases: orbit, rot, o

Author:
Lehlogonolo Poole
See Also:
  • Field Details

    • orbitMouseOwner

      public static OrbitMouseOwner orbitMouseOwner
      The mouse owner for OrbitCmd to function
    • orbitCmdUUID

      public UUID orbitCmdUUID
      The UUID which the orbit command uses to identify stuff registered by it. i.e. events or keybinds
  • Constructor Details

    • OrbitCmd

      public OrbitCmd()
  • Method Details