View source
interface IPicker
package away3d.core.pick
extended by RaycastPicker, ShaderPicker
Available on all platforms
Provides an interface for picking objects that can pick 3d objects from a view or scene.
Variables
onlyMouseEnabled:Bool
Determines whether the picker takes account of the mouseEnabled properties of entities. Defaults to true.
Methods
getSceneCollision(position:Vector3D, direction:Vector3D, scene:Scene3D):PickingCollisionVO
Gets the collision object from the scene position and direction of the picking ray.
Parameters:
position | The position of the picking ray in scene-space. |
|---|---|
direction | The direction of the picking ray in scene-space. |
scene | The scene on which the picking object acts. |
getViewCollision(x:Float, y:Float, view:View3D):PickingCollisionVO
Gets the collision object from the screen coordinates of the picking ray.
Parameters:
x | The x coordinate of the picking ray in screen-space. |
|---|---|
y | The y coordinate of the picking ray in screen-space. |
view | The view on which the picking object acts. |