File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 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
8080.. tabs ::
8181 .. code-tab :: gdscript GDScript
8282
83+ @onready var default_3d_map_rid: RID = get_world_3d().get_navigation_map()
84+
8385 var movement_speed: float = 4.0
8486 var movement_delta: float
8587 var path_point_margin: float = 0.5
86- var default_3d_map_rid: RID = get_world_3d().get_navigation_map()
8788
8889 var current_path_index: int = 0
8990 var current_path_point: Vector3
@@ -109,7 +110,7 @@ the default navigation map by setting the target position with ``set_movement_ta
109110 if current_path.is_empty():
110111 return
111112
112- movement_delta = move_speed * delta
113+ movement_delta = movement_speed * delta
113114
114115 if global_transform.origin.distance_to(current_path_point) <= path_point_margin:
115116 current_path_index += 1
You can’t perform that action at this time.
0 commit comments