mirror of
https://github.com/thegeneralist01/Scene-Manager-DevRepo
synced 2026-01-11 15:40:29 +01:00
Changed DistanceTo method to DistanceTo2D in GetNearbyVehicles
This commit is contained in:
parent
95f65c792c
commit
a103d9be67
1 changed files with 1 additions and 1 deletions
|
|
@ -81,7 +81,7 @@ namespace SceneManager
|
|||
|
||||
private static Vehicle[] GetNearbyVehicles(Vector3 collectorPosition, float collectorRadius)
|
||||
{
|
||||
return (from v in World.GetAllVehicles() where v.DistanceTo(collectorPosition) <= collectorRadius && v.IsValidForCollection() select v).ToArray();
|
||||
return (from v in World.GetAllVehicles() where v.DistanceTo2D(collectorPosition) <= collectorRadius && v.IsValidForCollection() select v).ToArray();
|
||||
}
|
||||
|
||||
private static void AssignStopForVehiclesFlag(List<Path> paths, Path path, Waypoint waypointData)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue