extends Node3D @onready var player1: CharacterBody3D = $Player1 @onready var camera: Camera3D = $Camera3D var camera_offset: Vector3; # Called when the node enters the scene tree for the first time. func _ready(): camera_offset = camera.global_position - player1.global_position pass # Replace with function body. # Called every frame. 'delta' is the elapsed time since the previous frame. func _process(delta): camera.global_position = player1.global_position + camera_offset pass