Package org.ngengine.picker
Interface CameraPickerBehavior
- All Known Implementing Classes:
CloserVisibleCameraPickerBehavior
public interface CameraPickerBehavior
Defines how the picking is done.
-
Method Summary
Modifier and TypeMethodDescriptionselect(Collidable rootNode, Camera cam, CollisionResults results) Selects one of the collision results.tweakRay(Collidable rootNode, Camera cam, Ray ray) Tweaks the ray before it is used for picking.
-
Method Details
-
select
Selects one of the collision results.- Parameters:
rootNode- the root node that was picked againstcam- the camera that was used for pickingresults- the collision results- Returns:
- the selected collision result, or null if none is suitable
-
tweakRay
Tweaks the ray before it is used for picking.- Parameters:
rootNode- the root node that will be picked againstcam- the camera that is used for pickingray- the ray to tweak- Returns:
- the tweaked ray (usually the same instance as the input ray)
-