Nez.Portable/Physics/SpatialHash.cs
/// <summary>
/// debug draws the contents of the spatial hash. Note that Core.debugRenderEnabled must be true or nothing will be displayed.
/// </summary>
/// <param name="secondsToDisplay">Seconds to display.</param>
/// <param name="textScale">Text scale.</param>
debug draws the contents of the spatial hash. Note that Core.debugRenderEnabled must be true or nothing will be displayed.
debug draws the contents of the spatial hash . Note that Core . debugRenderEnabled must be true or nothing will be displayed .
public void debugDraw(float secondsToDisplay, float textScale = 1f)
        {
            for (var x = gridBounds.X; x <= gridBounds.Right; x++)
            {
                for (var y = gridBounds.Y; y <= gridBounds.Bottom; y++)
                {
                    var cell = cellAtPosition(x, y);
                    if (cell != null && cell.Count > 0)
                        debugDrawCellDetails(x, y, cell.Count, secondsToDisplay, textScale);
                }
            }
        }
public void debugDraw ( float secondsToDisplay , float textScale = 1f ) { for ( var x = gridBounds . X ; x <= gridBounds . Right ; x ++ ) { for ( var y = gridBounds . Y ; y <= gridBounds . Bottom ; y ++ ) { var cell = cellAtPosition ( x , y ) ; if ( cell != null && cell . Count > 0 ) debugDrawCellDetails ( x , y , cell . Count , secondsToDisplay , textScale ) ; } } }
debug draws the contents of the spatial hash.
debug draws the contents of the spatial hash .
secondsToDisplay
float
Seconds to display.
Seconds to display .
textScale
float
None