Hi everyone,
I’m currently working on a small game with small planets and faux gravity, it’s first-person and I’m currently working on the first person controller.
I’ve done all the main movement and gravity, but am not sure how to do one part: moving the mouse left and right rotates the player around it’s local Y axis, however I need to also make sure that the player’s y direction is always pointing away from the planet. So far I tried it by doing transform.up = (vector away from planet) however this changed the y rotation of the player.
I was wondering if anyone could give some advice on how to point the player away from the planet without changing the y rotation. Thanks lots!