Package org.ngengine.picker
Class CameraPicker
java.lang.Object
org.ngengine.picker.CameraPicker
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CollisionResult
pick
(Collidable rootNode, Camera cam) Picks the closest visible object in the scene using theCLOSER_VISIBLE_PICKER
behavior.static CollisionResult
pick
(Collidable rootNode, Camera cam, CameraPickerBehavior picker) Picks an object in the scene using the specified picker behavior.
-
Field Details
-
CLOSER_VISIBLE_PICKER
-
-
Constructor Details
-
CameraPicker
public CameraPicker()
-
-
Method Details
-
pick
Picks the closest visible object in the scene using theCLOSER_VISIBLE_PICKER
behavior.- Parameters:
rootNode
- the root node to pick againstcam
- 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 againstcam
- the camera to pick frompicker
- the picker behavior to use- Returns:
- the collision result, or null if nothing was picked
-