Skip to content

onClick is not working properly with point mesh #1539

Answered by bhushan6
bhushan6 asked this question in Q&A
Discussion options

You must be logged in to vote

solved this by using plane with instanced mesh and made it facing camera all the time using the code below
dummy.quaternion.copy(camera.quaternion)

Idk if there is any extra performance hit with using instanced mesh plane instead of point mesh but working pretty nice right now and click function is firing up properly unlike with point mesh , also its great since I can also use different texture, color and scale for every mesh.

Answering my own question just in case anyone in future stuck into same problem

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by bhushan6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant