2023-11-08 14:28:55 +11:00
|
|
|
extends Camera3D
|
|
|
|
class_name MinimapCamera3D
|
|
|
|
|
|
|
|
@export var anchor : Node3D
|
2023-11-09 17:56:08 +11:00
|
|
|
#@export var face_north : bool
|
2023-11-08 14:28:55 +11:00
|
|
|
|
|
|
|
func _process(_delta: float) -> void:
|
|
|
|
global_position = anchor.global_position + (Vector3.UP * 100)
|
2023-11-09 17:56:08 +11:00
|
|
|
if Data.preferences.fixed_minimap:
|
|
|
|
rotation.y = 0
|
|
|
|
else:
|
2023-11-08 14:28:55 +11:00
|
|
|
rotation.y = anchor.rotation.y
|