public override bool LineOfSight(Vector3 start, Vector3 end) { for (var i = 0; i < bodyList.Count; i++) { if (CollisionTest.SegmentIntersects(bodyList[i].CollisionShape, start, end)) { return(false); } } return(true); }
public static bool BoxVsBox(BoxShape a, BoxShape b, ref CollisionResult result, bool twoD) { return(CollisionTest.TestAABB(a.Min, a.Max, b.Min, b.Max, ref result, twoD)); }