Rotating Camera to Shift Player Perspective when Changing Gravity Direction

I have a function that teleports a player to a surface and shifts their gravity based on the angle of the slope. It works great, but I’d like to rotate their camera perspective so that their new walking surface is rotated to look like the floor – basically like the world turned based on the new surface they’re walking on.

I have the directional vector I use to set my gravity direction, but how can I turn that into a rotation? Any advice would be helpful.

I think this is mostly a math issue, but either way I work primarily in blueprint. I can rotate the camera, just not find the right way to rotate it.

Thanks!

:innocent: