dsman Posted June 10, 2015 Share Posted June 10, 2015 I want functionality where I will need user to pick 3 point in a mesh which I want to store it and use it next time (after transforms are applied to mesh). I checked that pickedMesh provide the clicked point . But that is just point in the world space. So it will be lost after transforms (position/rotation) are applied to mesh. So I need to find the vertex which was clicked. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted June 11, 2015 Share Posted June 11, 2015 Hello dsman, you can apply the inverse of mesh's worldmatrix to get the coordinate in local space Quote Link to comment Share on other sites More sharing options...
dsman Posted June 11, 2015 Author Share Posted June 11, 2015 Ok. I was wondering I could find the vertex index which I can use later. But yeah point in object's local space can be saved for later use too. So basically I do this : http://www.html5gamedevs.com/topic/7599-convert-global-coordinates-to-local-coordinates/ with Picked point in pick info. 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.