Changed camera system to use sample_baked and get_sample_offset curve functions to get its location
This commit is contained in:
+2
-1
@@ -18,7 +18,8 @@ func seek_target():
|
|||||||
|
|
||||||
|
|
||||||
func constraint_to_rail():
|
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():
|
func _ready():
|
||||||
init()
|
init()
|
||||||
|
|||||||
Reference in New Issue
Block a user