Hey guys, hope your projects are going well!
Odd question here: I have a player that walks around meshes like in Super Mario Galaxy. I have the player moving forward, camera working (Cinemachine free-look camera) and the player standing up relative to the surface normal it's standing on.
Though, I want to make the player face away from the camera at all times wherein forward is camera up, back is camera down, left is camera left, and right is camera right. Due to further offsetting this new forward direction with the analog stick axis angle, I cannot just parent the camera directly behind the player.
To do this, I think I need the camera's forward direction but only on the player's local XZ.
I tried getting the cross product of the camera's right and the vertex normal assuming this would get the forward direction I need. Sadly, that does not seem to be the case since it seems to include the angle the camera is pointing from thus, tilting the player forward like Michael Jackson in the Smooth Criminal music video.
Linked is a mockup of the angle I am trying to achieve (The black arrow) relative to the working camera and player:
Also, here is an image of my rotation state in Playmaker utilizing the cross product of the camera's right and the current vertex normal:
https://drive.google.com/file/d/1srBbhwhpXX027e6AwPO-MlKOYWc_gO7X/view?usp=sharingIf you guys need more info, please let me know, and thanks for taking the time. This has been quite the stumper.