Skip to content

Commit

Permalink
feat(NPCVehicleDecisionStep.cs): add conditions for prediction-control
Browse files Browse the repository at this point in the history
Signed-off-by: kazushi67 <[email protected]>
  • Loading branch information
kazushi67 committed Jan 15, 2025
1 parent ca7ca7b commit d6eb76f
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,14 @@ private static void UpdateTargetPoint(NPCVehicleInternalState state)
if (state.ShouldDespawn || state.CurrentFollowingLane == null)
return;

if(state.Vehicle.outerControl == true){
state.TargetPoint = state.Vehicle.outerTargetPoint;
}
else
{
state.TargetPoint = state.CurrentFollowingLane.Waypoints[state.WaypointIndex];
}

state.TargetPoint = state.CurrentFollowingLane.Waypoints[state.WaypointIndex];
}

Expand Down

0 comments on commit d6eb76f

Please sign in to comment.