So here's a tricky one: When you use a mouseclick to create a raycast, and it hits a collider (including a mesh collider!), how can I get the outward vector at that specific point? So, for example, if I click on a model with a mesh collider on it, how can I get the surface normal of the triangle at the point where I clicked?
asked Aug 02 '10 at 09:03 AM
If you're using an overload of Raycast with a RaycastHit parameter, you can just read hit.normal to get it
answered Aug 02 '10 at 09:20 AM