Skip to content

Commit 387ec36

Browse files
Fix wrong arguments to DriveWaypoint
1 parent 83c8eaa commit 387ec36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

quickstart/13-npc-follow-waypoints.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def on_collision(agent1, agent2, contact):
7171
hit = sim.raycast(spawns[0].position + pz * forward, lgsvl.Vector(0,-1,0), layer_mask)
7272

7373
# NPC will wait for 1 second at each waypoint
74-
wp = lgsvl.DriveWaypoint(hit.point, speed, angle, 1, 0)
74+
wp = lgsvl.DriveWaypoint(hit.point, speed, angle, 1)
7575
waypoints.append(wp)
7676

7777
# When the NPC is within 0.5m of the waypoint, this will be called

0 commit comments

Comments
 (0)