12 lines
234 B
GDScript3
12 lines
234 B
GDScript3
|
extends Spatial
|
||
|
|
||
|
|
||
|
export(NodePath) var target_node
|
||
|
onready var target = get_node(target_node)
|
||
|
|
||
|
export(float) var lerp_factor = 0.5
|
||
|
|
||
|
|
||
|
func _physics_process(delta):
|
||
|
transform = transform.interpolate_with(target.transform, lerp_factor)
|