diff options
-rw-r--r-- | client/player/follow_camera.gd | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/client/player/follow_camera.gd b/client/player/follow_camera.gd index dec83b61..4fb2d560 100644 --- a/client/player/follow_camera.gd +++ b/client/player/follow_camera.gd @@ -83,7 +83,9 @@ func follow(delta): )) else: transform.basis = new_transform.basis - ground = G.interpolate(ground, target.position, delta * MOVE_WEIGHT) + + # add 0.5, this is the head height + ground = G.interpolate(ground, target.position + Vector3(0., 0.5, 0.), delta * MOVE_WEIGHT) camera_distance_target += Input.get_axis("zoom_in", "zoom_out") * ZOOM_SPEED * delta camera_distance_target = clamp(camera_distance_target, MIN_ZOOM, MAX_ZOOM) |