Godot Version
4.3
Question
Im trying to make a game where you walk around planets & I want the camera to rotate with the player. Can anyone tell me how I can program this?
4.3
Im trying to make a game where you walk around planets & I want the camera to rotate with the player. Can anyone tell me how I can program this?
change the camera rotation
How do I do that?
just simply make it a child of your player
Easiest Way you can do it, if the player already rotates acording to the surface of the planet, is to have the camera attached to the player. That way it will rotate with how the player is oriented, aka.: keeping him “upright”
The more dificult aproach would be to make a script on the camera. from inside it, get player’s rotation and set it as the rotation of camera. You can do the same also with position.
what I am going to say is completely unrelated to the post itself and is aimed at @jwogames.
This answer is not helpfull at all. You need to be more constructive and make a full answer that will actually help someone.
Even if they’re a beginner or more advanced user, still you need to make a answer that will actually help them, not just say "change the camera rotation"
, Everyone could say that, but that wouldn’t be good, would it? then noone would know what to do… just next time be more helpfull than just saying that
why didn’t I think of that , thank you for this
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.