refactor nav coverage into clustered windows
Replace region-based runtime pathing with interest-cluster coverage windows so active nav areas stay contiguous and spawn anchors participate in initial coverage.
This commit is contained in:
@@ -40,11 +40,6 @@ namespace VoxelWorldScene
|
||||
return explicitStreamTarget;
|
||||
}
|
||||
|
||||
if (currentStreamTarget != null)
|
||||
{
|
||||
return currentStreamTarget;
|
||||
}
|
||||
|
||||
CameraFollow[] cameraFollows = FindObjectsByType<CameraFollow>(FindObjectsInactive.Exclude, FindObjectsSortMode.None);
|
||||
for (int i = 0; i < cameraFollows.Length; i++)
|
||||
{
|
||||
@@ -55,6 +50,16 @@ namespace VoxelWorldScene
|
||||
}
|
||||
}
|
||||
|
||||
VoxelWorldSpawnAnchor[] spawnAnchors = FindObjectsByType<VoxelWorldSpawnAnchor>(FindObjectsInactive.Exclude, FindObjectsSortMode.None);
|
||||
for (int i = 0; i < spawnAnchors.Length; i++)
|
||||
{
|
||||
VoxelWorldSpawnAnchor anchor = spawnAnchors[i];
|
||||
if (anchor != null && anchor.isActiveAndEnabled)
|
||||
{
|
||||
return anchor.transform;
|
||||
}
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user