Options for the different 3D object picking approaches available in Away3D. Can be used for automatic mouse picking on the view.

See also:

  • away3d.containers.View3D#mousePicker

Static variables

@:value(new RaycastPicker(true))staticRAYCAST_BEST_HIT:IPicker = new RaycastPicker(true)

Uses AS3 and Pixel Bender to pick objects based on ray intersection. Returns the best (closest) hit on an Entity.

@:value(new RaycastPicker(false))staticRAYCAST_FIRST_ENCOUNTERED:IPicker = new RaycastPicker(false)

Uses AS3 and Pixel Bender to pick objects based on ray intersection. Returns the hit on the first encountered Entity.

@:value(new ShaderPicker())staticSHADER:IPicker = new ShaderPicker()

Uses a render pass to pick objects based on a key color that is read back into the engine. Performance can be variable on some GPUs.