Might be a duplicate of this, but I couldn’t find what I was looking for. I want to align my pawn so it’s up-vector always points away from the center of the planet. Here is what I have so far:
Try normalizing it before taking Xvector.
I managed to get it right. I had to make a Rotator from ZX. Make Rot From ZX means Z will always be fixed, which is the ‘up’ vector on the planet, and X will be the direction in which my character face forward. Y will be calculated automatically by cross product of X and Z.
So I get local Z (direction from planet to character
Get the character’s original X (forward vector) so I know what direction to face when standing on the surface.
And finally feed it to my “Make Rot From ZX”
To be honest I thought this forums would have given me this answer in two day’s time.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.