mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
Add another lookup override (#5436)
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user