firlyndi Posted December 17, 2015 Share Posted December 17, 2015 Hello, I am quite new to Babylon JS. I was wondering if there is a way to morph the selected vertices on click. I read the documentation, and tried all their examples, but have yet to come up with a solution. So far I have this code below. scene.onPointerDown = function(evt, pickResult) { if (pickResult.hit) { // code for mophing selected vertices here. var chosenMesh = pickResult.pickedMesh; }} I am stuck right at this point. I did some console logs and chosen mesh seems to select the entire plane. I also tried pickResult.faceId and it gives me the Id of the selected face, however, I am not sure how I can edit this particular face on the height map. Any ideas? Or examples? Thanks for your help. Quote Link to comment Share on other sites More sharing options...
MarianG Posted December 17, 2015 Share Posted December 17, 2015 Hi. Take a look here. Quote Link to comment Share on other sites More sharing options...
firlyndi Posted December 17, 2015 Author Share Posted December 17, 2015 Hi. Take a look here.This is exactly what I'm looking for !!!!!! Thanks so much!! 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.