(Formerly “RaycastHit.triangleIndex appears to always be -1”)
I’m making a game where I kneed to know what object/face the player is looking at when they click. RaycastHit is working for objects, but not faces. I know it’s hitting a gameObject w/ triangles because I can delete the object. Any clue/example/etc.? Also, I’m not sure what code to paste here, if any.
(On a related note, is there an easy way to get the first object a ray hits, besides sorting through them all with Physics.RaycastAll
?)
I fond you just need to turn off Convex on the collider
1 Like
That makes sense. Thanks for coming back to post.