jerome Posted March 4, 2015 Share Posted March 4, 2015 Hi, I want to reproduce the same kind of behavior as DOM element onmouseover. Say I have some meshes in the in space, I would like to display a positioned DOM element (anyway, it's not the topic, I just want to get the cursor screen x/y ) when the cursor passes upon a mesh. I saw there were a scene pick() method and abstractMesh isPickable() property. I read the tuto about picking and read the PG code about drag'n'drop also.I don't want to catch a click event, in other terms discover what mesh is under cursor xy on click. I just need to get cursor screen xy when it passes on a mesh. I really don't know how to approach the problem because meshes don't trigger any mouse events by themselves. Get the mesh, if any, under cursor screen x/y at each frame ?Any better idea ? Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.