Give-LIFE-Cybers/Scripts/GL_Lerp.gd
2025-04-08 04:30:16 -06:00

16 lines
394 B
GDScript

extends GL_Node
func _ready():
super._ready()
_set_title("Lerp")
_create_row("Value",0.0,0.0,true,0.0,1.0)
_create_row("Speed",1.0,null,true,1.0,25.0)
_update_visuals()
func _process(delta):
super._process(delta)
apply_pick_values()
rows["Value"]["output"] = lerp(float(rows["Value"]["output"]),float(rows["Value"]["input"]),delta * rows["Speed"]["input"])
_send_input("Value")