I currently am trying to get my character floating on a magic carpet, which will react with the environment by hovering parallel to the ground.
I have Almost achieved this!
Rotated one way in world:
Rotated opposite way:
Basically, I have a line trace directly under the player. It then gets the impact point, tries to turn it relative to the actor, turns it into a rot, and sets the target rotation value. (My own variable, doesn’t matter)
It works, except turning it relative. As you can see, he rotates for sure, but the way he’s turning doesn’t change depending on where he himself is rotated.
This is the part that needs fixing: Making the impact normal relative to the player’s rotation.
Any ideas for this? I’ve tried getting the actor rotation, as well as control rotation. None of them work :c