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