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

This commit is contained in:
2024-12-06 15:20:52 -08:00
parent 389ca2acfa
commit dd93cc21d4
+2 -1
View File
@@ -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()