Property | Type | Description | |
---|---|---|---|
colliderHorizontalInset | int | ||
colliderVerticalInset | int | ||
collisionLayer | Nez.Tiled.TiledTileLayer | ||
tiledMap | TiledMap |
Method | Description | |
---|---|---|
TiledMapMover ( Nez.Tiled.TiledTileLayer collisionLayer ) : System | ||
move ( Vector2 motion, BoxCollider boxCollider, CollisionState collisionState ) : void |
moves the Entity taking into account the tiled map
|
|
populateCollidingTiles ( |
gets a list of all the tiles intersecting bounds. The returned list is ordered for collision detection based on the direction passed in so they can be processed in order.
|
|
render ( Graphics graphics, Camera camera ) : void | ||
testCollisions ( Vector2 &motion, |
Method | Description | |
---|---|---|
collisionRectForSide ( System.Edge side, int motion ) : |
gets a collision rect for the given side expanded to take into account motion
|
|
testMapCollision ( |
||
testTileCollision ( |
Tests the tile for a collision. Returns via out the position in world space where the collision occured.
|
|
worldToTilePosition ( float worldPosition, Axis axis ) : int |
returns the tile position clamped to the tiled map
|
public TiledMapMover ( Nez.Tiled.TiledTileLayer collisionLayer ) : System | ||
collisionLayer | Nez.Tiled.TiledTileLayer | |
return | System |
public move ( Vector2 motion, BoxCollider boxCollider, CollisionState collisionState ) : void | ||
motion | Vector2 | Motion. |
boxCollider | BoxCollider | Box collider. |
collisionState | CollisionState | |
return | void |
public populateCollidingTiles ( |
||
bounds | Bounds. | |
direction | System.Edge | Direction. |
return | void |
public render ( Graphics graphics, Camera camera ) : void | ||
graphics | Graphics | |
camera | Camera | |
return | void |
public testCollisions ( Vector2 &motion, |
||
motion | Vector2 | |
boxColliderBounds | ||
collisionState | CollisionState | |
return | void |
public TiledTileLayer,Nez.Tiled collisionLayer | ||
return | Nez.Tiled.TiledTileLayer |