Packageaway3d.core.pick
Interfacepublic interface IPicker
Implementors RaycastPicker, ShaderPicker

Provides an interface for picking objects that can pick 3d objects from a view or scene.



Public Methods
 MethodDefined By
  
getSceneCollision(position:Vector3D, direction:Vector3D, scene:Scene3D):PickingCollisionVO
Gets the collision object from the scene position and direction of the picking ray.
IPicker
  
getViewCollision(x:Number, y:Number, view:View3D):PickingCollisionVO
Gets the collision object from the screen coordinates of the picking ray.
IPicker
Method Detail
getSceneCollision()method
public function getSceneCollision(position:Vector3D, direction:Vector3D, scene:Scene3D):PickingCollisionVO

Gets the collision object from the scene position and direction of the picking ray.

Parameters

position:Vector3D — The position of the picking ray in scene-space.
 
direction:Vector3D — The direction of the picking ray in scene-space.
 
scene:Scene3D — The scene on which the picking object acts.

Returns
PickingCollisionVO
getViewCollision()method 
public function getViewCollision(x:Number, y:Number, view:View3D):PickingCollisionVO

Gets the collision object from the screen coordinates of the picking ray.

Parameters

x:Number — The x coordinate of the picking ray in screen-space.
 
y:Number — The y coordinate of the picking ray in screen-space.
 
view:View3D — The view on which the picking object acts.

Returns
PickingCollisionVO