Class CameraPicker

java.lang.Object
org.ngengine.picker.CameraPicker

public class CameraPicker extends Object
  • Field Details

  • Constructor Details

    • CameraPicker

      public CameraPicker()
  • Method Details

    • pick

      @Nullable public static CollisionResult pick(Collidable rootNode, Camera cam)
      Picks the closest visible object in the scene using the CLOSER_VISIBLE_PICKER behavior.
      Parameters:
      rootNode - the root node to pick against
      cam - the camera to pick from
      Returns:
      the collision result, or null if nothing was picked
    • pick

      @Nullable public static CollisionResult pick(Collidable rootNode, Camera cam, CameraPickerBehavior picker)
      Picks an object in the scene using the specified picker behavior.
      Parameters:
      rootNode - the root node to pick against
      cam - the camera to pick from
      picker - the picker behavior to use
      Returns:
      the collision result, or null if nothing was picked