This commit is contained in:
2024-06-19 17:44:16 +02:00
parent da23fc66aa
commit 640e19fc53
4 changed files with 41 additions and 7 deletions

View File

@@ -15,5 +15,6 @@ func _process(delta):
position.y = move_toward(position.y, player.position.y + cam_distance + player_height/2., cam_speed * delta)
position.z = move_toward(position.z, player.position.z + cam_distance, cam_speed*delta)
position.x = move_toward(position.x, player.position.x, cam_speed* delta)
look_at(player.position + Vector3(0., player_height, 0.))
look_at(player.rotation + Vector3(0., player_height, 0.))
pass