コード例 #1
0
 /// <summary>
 /// Check if the specified bounds intersect with anything in the tree. See also: GetColliding.
 /// </summary>
 /// <param name="checkBounds">bounds to check.</param>
 /// <returns>True if there was a collision.</returns>
 public bool IsColliding(Bounds checkBounds)
 {
     //#if UNITY_EDITOR
     // For debugging
     //AddCollisionCheck(checkBounds);
     //#endif
     return(rootNode.IsColliding(ref checkBounds));
 }
コード例 #2
0
 /// <summary>
 /// Check if the specified bounds intersect with anything in the tree. See also: GetColliding.
 /// </summary>
 /// <param name="checkBounds">bounds to check.</param>
 /// <returns>True if there was a collision.</returns>
 public bool IsColliding(Bounds checkBounds)
 {
             #if UNITY_EDITOR
     AddCollisionCheck(checkBounds);
             #endif
     return(rootNode.IsColliding(checkBounds));
 }