combat actually works
This commit is contained in:
@@ -142,6 +142,12 @@ namespace OpenRa.Game
|
||||
|
||||
return world.Actors
|
||||
.Where(x => x.Bounds.IntersectsWith(rect));
|
||||
}
|
||||
|
||||
public static IEnumerable<Actor> FindUnitsInCircle(float2 a, float r)
|
||||
{
|
||||
return FindUnits(a - new float2(r, r), a + new float2(r, r))
|
||||
.Where(x => (x.CenterLocation - a).LengthSquared < r * r);
|
||||
}
|
||||
|
||||
public static IEnumerable<Actor> SelectUnitsInBox(float2 a, float2 b)
|
||||
|
||||
Reference in New Issue
Block a user