Nostalgia  2.1.5
MapCollider Class Reference

Class for Collider to combine. More...

Inheritance diagram for MapCollider:

Public Member Functions

void UpdateCollider ()
 

Static Public Member Functions

static Point2 CellPosColliderPos (Point2 cellPos)
 Converts the position of Cell to the position of MapCollider. More...
 
static Point2 CellToColliderPos (Cell cell)
 Converts the Cell to the position of MapCollider. More...
 

Public Attributes

const int colliderWidth = 16
 Number of cells on each side More...
 
bool dirty = false
 The dirty. More...
 

Properties

Tile tile [get]
 Types of tiles to combine More...
 
Point2 position [get]
 The position. More...
 
Map map [get]
 Map to which they belong. More...
 
bool hasCells [get]
 Whether this chunk has cells More...
 
PolygonCollider2D polygonCollider [get]
 PolygonCollider 2D as a result of combining. More...
 

Detailed Description

Class for Collider to combine.

Member Function Documentation

static Point2 CellPosColliderPos ( Point2  cellPos)
static

Converts the position of Cell to the position of MapCollider.

Parameters
cellPosCell position.
Returns
MapCollider position.
static Point2 CellToColliderPos ( Cell  cell)
static

Converts the Cell to the position of MapCollider.

Parameters
cellPosCell position.
Returns
MapCollider position.
void UpdateCollider ( )

Member Data Documentation

const int colliderWidth = 16

Number of cells on each side

bool dirty = false

The dirty.

Property Documentation

bool hasCells
get

Whether this chunk has cells

Map map
get

Map to which they belong.

PolygonCollider2D polygonCollider
get

PolygonCollider 2D as a result of combining.

Point2 position
get

The position.

Tile tile
get

Types of tiles to combine