[Papervision3D] Finding local mouse x,y for a 3d object
Norbert Bokor
bokorn at tvn.hu
Sun Mar 16 10:19:22 PST 2008
hi
you can use object.screen.x and screen.y values (screen position of the
DO3D)
compared to stageX/stageY you will have the solution
bye
bokorn
mark prettyman wrote:
> Hi all,
>
> I'm trying to find the mouse local x position for a papervision
> object... Is this possible?
>
> I want to move a line along the x
>
> my only thinking on the subject is to fake it i.e.
>
> // on mouse down
> startX = mouseX // (this would be the stage x)
>
> //on mouse move
> mouseMoveX = startX + mouseX
> 3Dline.lines[0].v1.x = mouseMoveX
>
> //on mouse off
> mouseMoveX = startX + mouseX
> 3Dline.lines[0].v1.x = mouseMoveX
>
> All seems a bit messy, any ideas.
>
> Would a movie clip material return a local x ?
>
> Cheers Mark
More information about the Papervision3D
mailing list