Changed camera system to use sample_baked and get_sample_offset curve functions to get its location

master
Jorge Vásquez Pérez 11 months ago
parent 389ca2acfa
commit dd93cc21d4

@ -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()

Loading…
Cancel
Save