Reduce NPC static collision avoidance range (#13197)

This commit is contained in:
metalgearsloth
2022-12-27 12:30:31 +11:00
committed by GitHub
parent 033e87aa3b
commit 181e16db53
2 changed files with 4 additions and 4 deletions

View File

@@ -320,7 +320,7 @@ public sealed partial class NPCSteeringSystem
EntityQuery<PhysicsComponent> bodyQuery,
EntityQuery<TransformComponent> xformQuery)
{
var detectionRadius = agentRadius + moveSpeed;
var detectionRadius = MathF.Max(1.5f, agentRadius + moveSpeed / 4f);
foreach (var ent in _lookup.GetEntitiesInRange(uid, detectionRadius, LookupFlags.Static))
{