Grid/GridSettings.cs

Static container of default numeric and boolean settings for a grid-based A* navigation grid, including cell size, clearance, step/drop limits and some toggles.

File Access
namespace GridAStar;

// Set STEP_SIZE or WIDTH_CLEARANCE to 0 to disable them (faster grid generation)
public static partial class GridSettings
{
	public const float DEFAULT_STANDABLE_ANGLE = 40f;   // How steep the terrain can be on a cell before it gets discarded
	public const float DEFAULT_STEP_SIZE = 12f;         // How big steps can be on a cell before it gets discarded
	public const float DEFAULT_CELL_SIZE = 16f;         // How large each cell will be in hammer units
	public const float DEFAULT_HEIGHT_CLEARANCE = 72f;  // How much vertical space there should be
	public const float DEFAULT_WIDTH_CLEARANCE = 24f;   // How much horizontal space there should be
	public const float DEFAULT_DROP_HEIGHT = 400f;      // How high you can drop down from
	public const bool DEFAULT_GRID_PERFECT = false;     // For grid-perfect terrain, if true it will not be checking for steps, so use ramps instead
	public const bool DEFAULT_STATIC_ONLY = true;       // Will it only hit world and static or also dynamic
}