Interface CameraPickerBehavior

All Known Implementing Classes:
CloserVisibleCameraPickerBehavior

public interface CameraPickerBehavior
Defines how the picking is done.
  • Method Details

    • select

      @Nullable CollisionResult select(Collidable rootNode, Camera cam, CollisionResults results)
      Selects one of the collision results.
      Parameters:
      rootNode - the root node that was picked against
      cam - the camera that was used for picking
      results - the collision results
      Returns:
      the selected collision result, or null if none is suitable
    • tweakRay

      Ray tweakRay(Collidable rootNode, Camera cam, Ray ray)
      Tweaks the ray before it is used for picking.
      Parameters:
      rootNode - the root node that will be picked against
      cam - the camera that is used for picking
      ray - the ray to tweak
      Returns:
      the tweaked ray (usually the same instance as the input ray)