Property | Type | Description | |
---|---|---|---|
VertexCount | int | ||
Vertices | Vector2[] |
Method | Description | |
---|---|---|
PolygonDef ( ) : System | ||
SetAsBox ( float hx, float hy ) : void |
Build vertices to represent an axis-aligned box.
|
|
SetAsBox ( float hx, float hy, System.Vector2 center, float angle ) : void |
Build vertices to represent an oriented box.
|
public SetAsBox ( float hx, float hy ) : void | ||
hx | float | The half-width |
hy | float | The half-height. |
return | void |
public SetAsBox ( float hx, float hy, System.Vector2 center, float angle ) : void | ||
hx | float | The half-width |
hy | float | The half-height. |
center | System.Vector2 | The center of the box in local coordinates. |
angle | float | The rotation of the box in local coordinates. |
return | void |