How to get the SURFACE normal from line trace hit location?
So I'm trying to get the vector perpendicular to the surface of any object hit by a line trace. I don't want the impact normal, instead, I always want the result to be a right angle from the surface of the wall. As in the attached pic, how can I modify the line trace hit result so that I'm generating the vector of the white line?
As always, thank you!!!
asked Mar 01 '15 at 10:10 PM in Blueprint Scripting
Sorry if I misinterpret the question.
To get a vector perpendicular to the surface (the normal) of a hit object, you just have to add the impact normal to the impact point. As far as I understand the reason why is because the impact normal is a direction vector, so it could describe any number of parallel surfaces.
Below I make a little blueprint showing how using the hit result of an initial trace, a second trace can be done parallel to the normal at the impact position.
Hope this helps.
answered Mar 13 '15 at 07:34 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here