strad84 Posted November 20, 2013 Share Posted November 20, 2013 Hi guys, is it possible to intercept a click on a mesh (not an obj imported) and do something ? Thanks a lot Quote Link to comment Share on other sites More sharing options...
Temechon Posted November 20, 2013 Share Posted November 20, 2013 Hello, Of course it's possible ! you can try scene.pick(evt.clientX, evt.clientY). This function returns several information, as described here : https://github.com/BabylonJS/Babylon.js/wiki/11---Picking-collisions Quote Link to comment Share on other sites More sharing options...
strad84 Posted November 20, 2013 Author Share Posted November 20, 2013 Thanks! Quote Link to comment Share on other sites More sharing options...
Temechon Posted November 20, 2013 Share Posted November 20, 2013 No problem Please set this thread as "Resolved" if you think your problem is... well, resolved Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.