C# Class Nez.PolygonCollider

Polygons should be defined in clockwise fashion.
Inheritance: Collider
显示文件 Open project: prime31/Nez

Public Methods

Method Description
PolygonCollider ( Vector2 points ) : System

If the points are not centered they will be centered with the difference being applied to the localOffset.

PolygonCollider ( int vertCount, float radius ) : System
debugRender ( Graphics graphics ) : void

Method Details

PolygonCollider() public method

If the points are not centered they will be centered with the difference being applied to the localOffset.
public PolygonCollider ( Vector2 points ) : System
points Vector2 Points.
return System

PolygonCollider() public method

public PolygonCollider ( int vertCount, float radius ) : System
vertCount int
radius float
return System

debugRender() public method

public debugRender ( Graphics graphics ) : void
graphics Graphics
return void