[Papervision3D] Detecting surface that user clicked

rienxxx tohjg85 at gmail.com
Thu Jun 19 21:43:20 PDT 2008


I created a cube and trying to detect which surface i have clicked. I have
cube have a eventListener with InteractiveScene3DEvent. But it's doesn't
detect which surface that i click but it would able to tell me what are the
position x and y of the surface that my mouse in.

i tried another idea the surface (which is using MovieMaterial) has another
eventListener with MouseEvent.MOUSE_DOWN and pass the variable of which
surface i click to cube.InteractiveScene3DEvent. Seems that cube's
eventListener come first before MouseEvent.MOUSE_DOWN. So this idea failed.

Does anyone have any idea of how can I get which surface that I clicked via
InteractiveScene3dEvent? Please share.

Thanks in advance.
-- 
View this message in context: http://www.nabble.com/Detecting-surface-that-user-clicked-tp18022914p18022914.html
Sent from the Papervision3D mailing list archive at Nabble.com.




More information about the Papervision3D mailing list