mirror of
https://github.com/Steffo99/cinnos.git
synced 2024-11-22 16:14:19 +00:00
14 lines
188 B
GDScript3
14 lines
188 B
GDScript3
|
extends Camera3D
|
||
|
|
||
|
|
||
|
@export var target: Node
|
||
|
@onready var offset: Vector3
|
||
|
|
||
|
|
||
|
func _ready():
|
||
|
offset = position - target.position
|
||
|
|
||
|
|
||
|
func _process(delta):
|
||
|
position = target.position + offset
|