Reduce NPC static collision avoidance range (#13197)
This commit is contained in:
@@ -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))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user