|
@@ -23,6 +23,9 @@ func _ready() -> void:
|
|
|
|
|
|
|
|
|
func _process(_delta):
|
|
|
+ if not camera.current:
|
|
|
+ # If the camera we have isn't the current one, get the current camera.
|
|
|
+ camera = get_viewport().get_camera()
|
|
|
var parent_translation = parent.global_transform.origin
|
|
|
var camera_transform = camera.global_transform
|
|
|
var camera_translation = camera_transform.origin
|