removeEntityFromPartition method

CellSpacePartitioning removeEntityFromPartition(
  1. GameEntity entity,
  2. int index
)

Removes an entity from a specific partition.

Implementation

CellSpacePartitioning removeEntityFromPartition(GameEntity entity, int index ) {
	final cell = cells[ index ];
	cell.remove( entity );

	return this;
}