Packageaway3d.core.render
Classpublic class FindHit

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

Public Methods
 MethodDefined by
  
FindHit
(view:View3D, primitives:Array, x:Number, y:Number)
Creates a new FindHit object.
FindHit
  
Returns a 3d mouse event object populated with the properties from the hit point.
FindHit
Constructor detail
FindHit()constructor
public function FindHit(view:View3D, primitives:Array, x:Number, y:Number)Parameters
view:View3D — The view to be used.
 
primitives:Array — The primitives that have been rendered in the last frame.
 
x:Number — The x coordinate of the point to test.
 
y:Number — The y coordinate of the point to test.
####INIT####
Method detail
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 ####WIKI####

Code examples

Comments