Files
wgj26/addons/phantom_camera/examples/scripts/3D/path_follow.gd
T
bigmstone 2c6a395938 Level 3
Using Level 3 to do a big art pass and get a lot of systems set up and
cleaned up.

Add Phantom Camera addon with comprehensive 2D/3D camera system
2026-10-04 02:21:46 -06:00

15 lines
452 B
GDScript

extends Area3D
@export var path_pcam: PhantomCamera3D
func _ready() -> void:
area_shape_entered.connect(_area_shape_entered)
area_shape_exited.connect(_area_shape_exited)
func _area_shape_entered(area_rid: RID, area: Area3D, area_shape_index: int, local_shape_index: int) -> void:
path_pcam.set_priority(20)
func _area_shape_exited(area_rid: RID, area: Area3D, area_shape_index: int, local_shape_index: int) -> void:
path_pcam.set_priority(0)