Set rotation actor with impact normal
I would like to change the rotation of an actor (here a pawn) depending on the impact normal from line trace. It works for a climb but not for a descent because the impact normal is always positive. Someone has an idea to fix that ?
asked Jul 10 '15 at 02:15 PM in Blueprint Scripting
There is a slightly cleaner way to solve this issue. My answer is a few years late, but found this on a Google search, so leaving a response for people finding this in the future.
Grab the impact normal from your hit result and pass it as the forward vector on a MakeRotationFromAxis node (leave the other two vectors at zero. Apply the resulting rotation to whichever actor you want to match the surface of your hit object.
Follow this question
Once you sign in you will be able to subscribe for any updates here