Ok, so I’m trying to get a vector horizontal to the ground that my character is standing on AND I want it to be pointing in the direction the character is looking.
I’m currently getting the right vector of the hit normal and setting the rotation of a scene component with it, and then getting the camera rotation and setting the rotation of the scene component again to the Z of the camera rotation, but this doesn’t keep horizontal to the ground.
I feel like there is a simple mathematical solution for this but I have never been able to figure it out.