mtd/Scripts/minimap_cam.gd

13 lines
299 B
GDScript3
Raw Normal View History

extends Camera3D
class_name MinimapCamera3D
@export var anchor : Node3D
2023-11-09 17:56:08 +11:00
#@export var face_north : bool
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:
rotation.y = anchor.rotation.y