Nez.Portable/Physics/Physics.cs
/// <summary>
/// returns all colliders that are intersected by collider.bounds expanded to incorporate deltaX/deltaY
/// excluding the passed-in collider (self)
/// </summary>
/// <returns>The neighbors excluding self.</returns>
/// <param name="collider">Collider.</param>
returns all colliders that are intersected by collider.bounds expanded to incorporate deltaX/deltaY
excluding the passed-in collider (self)
returns all colliders that are intersected by collider . bounds expanded to incorporate deltaX / deltaY excluding the passed - in collider ( self )
public static IEnumerable<Collider> boxcastBroadphaseExcludingSelf(
            Collider collider,
            float deltaX,
            float deltaY,
            int layerMask = allLayers)
        {
            var colliderBounds = collider.bounds;
            var sweptBounds = colliderBounds.getSweptBroadphaseBounds(deltaX, deltaY);
            return _spatialHash.aabbBroadphase(ref sweptBounds, collider, layerMask);
        }
public static IEnumerable < Collider > boxcastBroadphaseExcludingSelf ( Collider collider , float deltaX , float deltaY , int layerMask = allLayers ) { var colliderBounds = collider . bounds ; var sweptBounds = colliderBounds . getSweptBroadphaseBounds ( deltaX , deltaY ) ; return _spatialHash . aabbBroadphase ( ref sweptBounds , collider , layerMask ) ; }
returns all colliders that are intersected by collider.bounds expanded to incorporate deltaX/deltaY
excluding the passed-in collider (self)
returns all colliders that are intersected by collider . bounds expanded to incorporate deltaX / deltaY excluding the passed - in collider ( self )
The neighbors excluding self.
The neighbors excluding self .
collider
Collider
None
deltaX
float
deltaY
float
layerMask
int