NPC utility queries (#15843)
This commit is contained in:
@@ -455,7 +455,7 @@ public sealed partial class NPCSteeringSystem
|
||||
EntityQuery<PhysicsComponent> bodyQuery,
|
||||
EntityQuery<TransformComponent> xformQuery)
|
||||
{
|
||||
var detectionRadius = agentRadius + 0.1f;
|
||||
var detectionRadius = MathF.Max(0.35f, agentRadius + 0.1f);
|
||||
var ourVelocity = body.LinearVelocity;
|
||||
var factionQuery = GetEntityQuery<FactionComponent>();
|
||||
factionQuery.TryGetComponent(uid, out var ourFaction);
|
||||
|
||||
Reference in New Issue
Block a user