Detect clicked face in 3D cylinder three.js

PORDUASS

New Member
I've created a 3D cylinder using three.js. The cylinder is perfectly fine. But I want to get the face on which the user clicks. I have gone through this discussion and tried to implement this in our code . detect cylinder faces in three.jsThe z-coordinate of my camera is 100. So the x- axis coordinate value remains almost the same through out the cylinder. and thus unable to detect the clicked face of the cylinder.Any help is appreciable.
 
Back
Top