Пример #1
0
 /// <summary>
 /// Indica si un BoundingSphere colisiona con un BoundingBox.
 /// </summary>
 /// <param name="sphere">BoundingSphere</param>
 /// <param name="aabb">BoundingBox</param>
 /// <returns>True si hay colisión</returns>
 public static bool testSphereOBB(TgcBoundingSphere sphere, TgcObb obb)
 {
     return TgcCollisionUtils.testSphereOBB(sphere.toStruct(), obb.toStruct());
 }
Пример #2
0
 /// <summary>
 /// Indica si un BoundingSphere colisiona con un BoundingBox.
 /// </summary>
 /// <param name="sphere">BoundingSphere</param>
 /// <param name="aabb">BoundingBox</param>
 /// <returns>True si hay colisión</returns>
 public static bool testSphereAABB(TgcBoundingSphere sphere, TgcBoundingBox aabb)
 {
     return TgcCollisionUtils.testSphereAABB(sphere.toStruct(), aabb.toStruct());
 }