Jump to content

How to get the face ID of a ground mesh with a pick


elkyu
 Share

Recommended Posts

Hi, 

 

I try to get the face ID of a ground mesh with a pick info but when I click nothing happens. 

 

I can do that on a plane with this code but it doesn't work on a ground mesh, why ? 

scene.onPointerDown = function(evt, pickResult){                              if(pickResult.hit){                   var  faceId = pickResult.faceId;                   console.log(faceId);                  }};
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...