Rubeus::Awerere::CollisionGrid struct

Grid of cells arranged in a 2D matrix fashion.

Constructors, destructors, conversion operators

CollisionGrid(const float& gridHeight, const float& gridWidth, const float& cellHeight, const float& cellWidth)
Constructor.
~CollisionGrid()
Destructor.

Public variables

const float m_GridHeight
Height of grid.
const float m_GridWidth
Height of grid.
const float m_CellHeight
Height of cell.
const float m_CellWidth
Width of cell.
const float m_XCount
Count of columns.
const float m_YCount
Count of rows.

Function documentation

Rubeus::Awerere::CollisionGrid::CollisionGrid(const float& gridHeight, const float& gridWidth, const float& cellHeight, const float& cellWidth)

Constructor.

Parameters
gridHeight Height of grid.
gridWidth Width of grid.
cellHeight Height of cell.
cellWidth Width of cell.