[Papervision3D] how get a mouse3d position

De'Angelo Richardson dialeoson at yahoo.com
Thu May 8 14:53:05 PDT 2008


There's another example in the GW Branch under http://papervision3d.googlecode.com/svn/trunk/branches/GreatWhite/examples/FlashCS3/helloMouse3D/
This one is for 2.0
 
-De'Angelo
RealmoOfCreation



----- Original Message ----
From: Orlando Leite <orlleite at gmail.com>
To: papervision3d at osflash.org
Sent: Thursday, May 8, 2008 2:48:36 PM
Subject: [Papervision3D] how get a mouse3d position

I had done a website using a interactive scene on papervision3d 1.7. Now, I`m using papervision3d 2.0.

In old code I used the mouse3d example as base-code. I updated the mouse position using a plane on scene and mouse3d. like gismo from mouse3d example.

Now, things has changed. I trying update de mouse3d position like before but I can't.

I do like that:

[..]
ism = new InteractiveSceneManager( viewport );
mouse3D = ism.mouse3D;
planeMouse.addEventListener( InteractiveScene3DEvent.OBJECT_MOVE, handleMouseMove );
[..]


public function handleMouseMove( event:InteractiveScene3DEvent ) {
  gismo.copyTransform( mouse3D );
}

I want the gismo stay where mouse is.


thx.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20080508/4e3b7470/attachment.html 


More information about the Papervision3D mailing list