@ -18,7 +18,8 @@ func seek_target():
func constraint_to_rail():
position = rail.curve.get_closest_point( target.position )
position = rail.curve.sample_baked( rail.curve.get_closest_offset( target.position ) )
#position = rail.curve.get_closest_point( target.position )
func _ready():
init()