Packageaway3d.core.utils
Classpublic class HitManager

Public Properties
 PropertyDefined by
  elementVO : ElementVO
[read-only]
HitManager
  material : Material
[read-only]
HitManager
  object : Object3D
[read-only]
HitManager
  sceneX : Number
[read-only]
HitManager
  sceneY : Number
[read-only]
HitManager
  sceneZ : Number
[read-only]
HitManager
  screenX : Number
[read-only]
HitManager
  screenY : Number
[read-only]
HitManager
  screenZ : Number
[read-only]
HitManager
  uv : UV
[read-only]
HitManager
  view : View3D
[read-only]
HitManager
Public Methods
 MethodDefined by
  
HitManager
  
findHit(session:AbstractSession, x:Number, y:Number):void
Finds the object that is rendered under a certain view coordinate.
HitManager
  
Returns a 3d mouse event object populated with the properties from the hit point.
HitManager
Property detail
elementVOproperty
elementVO:ElementVO  [read-only]

Implementation
    public function get elementVO():ElementVO
materialproperty 
material:Material  [read-only]

Implementation
    public function get material():Material
objectproperty 
object:Object3D  [read-only]

Implementation
    public function get object():Object3D
sceneXproperty 
sceneX:Number  [read-only]

Implementation
    public function get sceneX():Number
sceneYproperty 
sceneY:Number  [read-only]

Implementation
    public function get sceneY():Number
sceneZproperty 
sceneZ:Number  [read-only]

Implementation
    public function get sceneZ():Number
screenXproperty 
screenX:Number  [read-only]

Implementation
    public function get screenX():Number
screenYproperty 
screenY:Number  [read-only]

Implementation
    public function get screenY():Number
screenZproperty 
screenZ:Number  [read-only]

Implementation
    public function get screenZ():Number
uvproperty 
uv:UV  [read-only]

Implementation
    public function get uv():UV
viewproperty 
view:View3D  [read-only]

Implementation
    public function get view():View3D
Constructor detail
HitManager()constructor
public function HitManager(view:View3D)Parameters
view:View3D
Init Parameters
Method detail
findHit()method
public function findHit(session:AbstractSession, x:Number, y:Number):void

Finds the object that is rendered under a certain view coordinate. Used for mouse click events.

Parameters
session:AbstractSession
 
x:Number
 
y:Number
getMouseEvent()method 
public function getMouseEvent(type:String):MouseEvent3D

Returns a 3d mouse event object populated with the properties from the hit point.

Parameters
type:String

Returns
MouseEvent3D
Wiki link
Click to go to the wiki page for 'away3d.core.utils.HitManager'

Code examples

Comments