File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -80,10 +80,11 @@ the default navigation map by setting the target position with ``set_movement_ta
80
80
.. tabs ::
81
81
.. code-tab :: gdscript GDScript
82
82
83
+ @onready var default_3d_map_rid: RID = get_world_3d().get_navigation_map()
84
+
83
85
var movement_speed: float = 4.0
84
86
var movement_delta: float
85
87
var path_point_margin: float = 0.5
86
- var default_3d_map_rid: RID = get_world_3d().get_navigation_map()
87
88
88
89
var current_path_index: int = 0
89
90
var current_path_point: Vector3
@@ -109,7 +110,7 @@ the default navigation map by setting the target position with ``set_movement_ta
109
110
if current_path.is_empty():
110
111
return
111
112
112
- movement_delta = move_speed * delta
113
+ movement_delta = movement_speed * delta
113
114
114
115
if global_transform.origin.distance_to(current_path_point) <= path_point_margin:
115
116
current_path_index += 1
You can’t perform that action at this time.
0 commit comments