All Implemented Interfaces:
Argument

public class LookAtCmd extends Subcommand
A subcommand of CameraCmd which makes the camera look at a given Thing or Vector3

Provides a required TypedArg which accepts either a String (representing a Thing's name or UUID) or a Vector3 (representing a point in 3D space)

Aliases: lookAt, la, look, lookat

Typical Usage:


     cam lookat "myObject"            - Makes the camera look at the thing named "myObject"
     cam la (10, 20, 30)              - Makes the camera look at the point (10, 20, 30)
     cam look 123e4567-e89b-12d3-a456-426614174000 - Makes the camera look at the thing with the given UUID
     

Author:
Lehlogonolo Poole
See Also:
  • Constructor Details

    • LookAtCmd

      public LookAtCmd()
  • Method Details

    • run

      public void run(Invoker invoker, SafeJLabel logLabel, String aliasUsed, Object[] args, ArrayList<TaggedArgValue<?>> taggedArgs)
      Description copied from class: Command
      The method to be overridden by subclasses to implement command functionality.
      Overrides:
      run in class Command
      Parameters:
      invoker - The invoker of this command
      logLabel - The JLabel to display log messages.
      aliasUsed - The alias of the command that was used to invoke it.
      args - The arguments passed to the command.
      taggedArgs - Tagged arguments passed to the command.