Add another lookup override (#5436)

This commit is contained in:
metalgearsloth
2024-09-12 13:53:36 +10:00
committed by GitHub
parent 48d70a09c6
commit 4faef1bfd3

View File

@@ -68,6 +68,16 @@ public sealed partial class EntityLookupSystem
return intersecting;
}
/// <summary>
/// Gets entities intersecting to the relative broadphase entity. Does NOT turn the transform into local terms.
/// </summary>
public void GetLocalEntitiesIntersecting(EntityUid gridUid, IPhysShape shape, Transform localTransform, HashSet<EntityUid> intersecting, LookupFlags flags = DefaultFlags, BroadphaseComponent? lookup = null)
{
var localAABB = shape.ComputeAABB(localTransform, 0);
AddEntitiesIntersecting(gridUid, intersecting, shape, localAABB, localTransform, flags: flags, lookup: lookup);
AddContained(intersecting, flags);
}
/// <summary>
/// Gets the entities intersecting the specified broadphase entity using a local AABB.
/// </summary>