In my game, one of my gameObjects casts a ray into a 2d space. If that ray were to hit another gameObject, I’d like to draw a line that is perpendicular to the tangent of the ray’s hit point. So when the ray hits the other object, a tangent is formed at the point of contact, and then I’d like to use the linerenderer component to draw a line that is perpendicular to that tangent. I already know how to use the linerenderer to draw lines, but I don’t know how to get the tangent and normal from a collision.
Raycasthit has a property called normal that should give you the normal, yoy only needed the tanget for getting the normal right?