@@ -234,7 +234,7 @@ function DockingHandler:SpawnUndersideDockingCraft(craft, specificDock)
234
234
craft :AddAISceneWaypoint (dockTable .dockPosition );
235
235
local direction = dockToDockAt % 2 == 0 and 1 or - 1 ;
236
236
print (" direction: " .. direction );
237
- craft :AddAISceneWaypoint (dockTable .dockPosition + Vector (275 * direction , 0 ))
237
+ craft :AddAISceneWaypoint (dockTable .dockPosition + Vector (- 275 * direction , 0 ))
238
238
239
239
dockTable .activeCraft = craft ;
240
240
dockTable .dockingStage = 1 ;
@@ -342,7 +342,7 @@ function DockingHandler:UpdateUndersideDockingCraft()
342
342
craft :AddAISceneWaypoint (pos );
343
343
craft :AddAISceneWaypoint (dockTable .dockPosition );
344
344
local direction = i % 2 == 0 and 1 or - 1 ;
345
- craft :AddAISceneWaypoint (dockTable .dockPosition + Vector (275 * direction , 0 ))
345
+ craft :AddAISceneWaypoint (dockTable .dockPosition + Vector (- 275 * direction , 0 ))
346
346
347
347
dockTable .activeCraft = craft ;
348
348
dockTable .dockingStage = 1 ;
@@ -444,7 +444,7 @@ function DockingHandler:UpdateUndersideDockingCraft()
444
444
445
445
-- print(SceneMan:ShortestDistance(craft.Pos, dockTable.dockPosition + Vector(200 * direction, 0), true))
446
446
447
- local distFromDockArea = SceneMan :ShortestDistance (craft .Pos , dockTable .dockPosition + Vector (275 * direction , 0 ), true ).Magnitude
447
+ local distFromDockArea = SceneMan :ShortestDistance (craft .Pos , dockTable .dockPosition + Vector (- 275 * direction , 0 ), true ).Magnitude
448
448
-- print(distFromDockArea)
449
449
if distFromDockArea < 20 then
450
450
craft :OpenHatch ();
0 commit comments