Nostalgia  2.1.5
TilePolygonCollider Class Reference

Polygon type of tile collider More...

Inheritance diagram for TilePolygonCollider:
TileCollider< PolygonCollider2D >

Classes

class  Path
 Class that stores the vertices of each path More...
 

Public Member Functions

override void GetPolygons (Vector2 cellPos, List< List< Vector2 >> polygons)
 Get polygons. More...
 
override bool IsUpdateCollider (Collider2D collider, Vector2 cellPos)
 Determines whether the need to update the collider More...
 

Public Attributes

Path[] paths = new Path[] { new Path() }
 Array of paths More...
 

Protected Member Functions

override bool UpdateColliderProperty (Collider2D collider)
 
- Protected Member Functions inherited from TileCollider< PolygonCollider2D >
override System.Type GetRequireColliderType ()
 Get the type of request to Collider2D. More...
 

Detailed Description

Polygon type of tile collider

Member Function Documentation

override void GetPolygons ( Vector2  cellPos,
List< List< Vector2 >>  polygons 
)

Get polygons.

Parameters
cellPosCell position
polygonsList containing polygons
override bool IsUpdateCollider ( Collider2D  collider,
Vector2  cellPos 
)

Determines whether the need to update the collider

Parameters
colliderCollider
cellPosCell position
Returns
If you need update true
override bool UpdateColliderProperty ( Collider2D  collider)
protected

Member Data Documentation

Path [] paths = new Path[] { new Path() }

Array of paths