mtd/Scripts/minimap_cam.gd

13 lines
297 B
GDScript3
Raw Normal View History

extends Camera3D
class_name MinimapCamera3D
2024-02-22 06:22:22 +11:00
@export var anchor: Node3D
#@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