예제 #1
0
 //no borren el metodo HuboCollision
 public bool huboColision(TgcObb obbDeUnAuto)
 {
     for (int i = 0; i < objetosColisionables.Count; i++)
     {
         if (Colisiones.testObbObb2(obbDeUnAuto, objetosColisionables[i]))
         {
             return(true);
         }
     }
     return(false);
 }
예제 #2
0
 /// <summary>
 /// Testear si hay colision entre dos OBB
 /// </summary>
 /// <param name="a">Primer OBB</param>
 /// <param name="b">Segundo OBB</param>
 /// <returns>True si hay colision</returns>
 public static bool testObbObb2(TgcObb a, TgcObb b)
 {
     return(Colisiones.testObbObb2(a.toStruct(), b.toStruct()));
 }