How to calculate the angle of reflection in 3D?
I'm having trouble figuring out how to reflect a material in UE4. The picture demonstrates how i want the character to move. Dark red = Wall, and Green lines = Character path.
asked Oct 12 '17 at 08:41 PM in Blueprint Scripting
Use vectors and make rotators from them. New output direction vector is input direction vector mirrored by wall normal. So get character direction, get wall normal (from hit result), mirror it, and make rotator from X vector.
Here is an example of how line trace ricochet works - https://wiki.unrealengine.com/Simple_Line_Trace_Ricochet
answered Oct 13 '17 at 04:05 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here