[Papervision3D] Finding local mouse x,y for a 3d object

Norbert Bokor bokorn at tvn.hu
Sun Mar 16 12:27:22 PST 2008


all of your DisplayObject3D objects has screen.x and screen.y 
properties, these are the screen position of the object
so for example if you have a Cube object named "cube", after rendering 
the cube.screen.x will be the horizontal screen position of your cube
if your mouse cursor is over the 0:0 of the cube, the cube.screen.x and 
viewport.mouseX should be the same
> object.screen.x is returning data like this
> e.target.screen.x = 2.1109309511201655e-17
>  
> where as mouseX is returning 272 ie a position in pixels.
>  
> sorry if this is a bit of a dumb question. 
>  
> I'm still a bit of an as3 novice,
>  




More information about the Papervision3D mailing list