Beispiel #1
0
 public int collide(GameObject obj)
 {
     Vector2 temp = obj.getLocXY();
     temp = locXY + new Vector2(rad, rad) - temp - new Vector2(15, 15);
     if (temp.Length() <= rad + 15f)
         return 2;
     return 0;
 }