Skip to content

Separated onClick events to each face of geometry. #1766

Answered by drcmda
nandoolle asked this question in Q&A
Discussion options

You must be logged in to vote

materials cannot have event listeners because they do not have any geometry for the raycaster to pierce, but the event data gives you clues as to which face was hit (event.faceIndex). see https://codesandbox.io/s/viewcube-py4db

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@nandoolle
Comment options

Answer selected by nandoolle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1765 on October 22, 2021 09:24.