How to make a third person controller

Godot Version

Replace this line with your Godot version
v4.3.stable.official [77dcf97d8]

Question

Ask your question here! Try to give as many details as possible
How to ensure that the character is always in the front while moving


I don’t know why, but I’m facing the opposite direction.

well, since the problem is just that your character is facing in the opposite direction of movement, couldn’t you simply rotate the desired rotation by 180 deg? like so:

player_body.rotation.y = lerp_angle(player_body.rotation.y, atan2(velocity.x, velocity.z) + PI, delta * angular_speed)
# PI == deg_to_rad(180)
2 Likes

thank you