예제 #1
0
 public void TestGetDistanceBetweenInside()
 {
     Assert.AreEqual(0, TangibleUtilities.GetDistanceBetween(_t6, _t7));
 }
예제 #2
0
 public void TestGetDistanceBetween()
 {
     Assert.AreEqual(1.5f, TangibleUtilities.GetDistanceBetween(_t5, _t8));
 }
예제 #3
0
 public void TestGetDistanceBetweenOverlap()
 {
     Assert.AreEqual(0f, TangibleUtilities.GetDistanceBetween(_t5, _t6));
 }
예제 #4
0
 public bool InRange(ITangible target)
 {
     return(TangibleUtilities.GetDistanceBetween(Agent, target) <= Range);
 }