Method | Description | |
---|---|---|
CreateCapsule ( float height, float endRadius, int edges ) : Vertices |
Creates an capsule with the specified height, radius and number of edges. A capsule has the same form as a pill capsule.
|
|
CreateCapsule ( float height, float topRadius, int topEdges, float bottomRadius, int bottomEdges ) : Vertices |
Creates an capsule with the specified height, radius and number of edges. A capsule has the same form as a pill capsule.
|
|
CreateCircle ( float radius, int numberOfEdges ) : Vertices |
Creates a circle with the specified radius and number of edges.
|
|
CreateEdge ( Vector2 start, Vector2 end ) : Vertices |
Set this as a single edge.
|
|
CreateEllipse ( float xRadius, float yRadius, int numberOfEdges ) : Vertices |
Creates a ellipse with the specified width, height and number of edges.
|
|
CreateGear ( float radius, int numberOfTeeth, float tipPercentage, float toothHeight ) : Vertices |
Creates a gear shape with the specified radius and number of teeth.
|
|
CreatePolygon ( uint data, int width, int height, float hullTolerance, byte alphaTolerance, bool multiPartDetection, bool holeDetection ) : List |
Detects the vertices by analyzing the texture data.
|
|
CreatePolygon ( uint data, int width, int height ) : Vertices |
Detects the vertices by analyzing the texture data.
|
|
CreatePolygon ( uint data, int width, int height, bool holeDetection ) : Vertices |
Detects the vertices by analyzing the texture data.
|
|
CreateRectangle ( float hx, float hy ) : Vertices |
Build vertices to represent an axis-aligned box.
|
|
CreateRectangle ( float hx, float hy, Vector2 center, float angle ) : Vertices |
Build vertices to represent an oriented box.
|
|
CreateRoundedRectangle ( float width, float height, float xRadius, float yRadius, int segments ) : Vertices |
Creates a rounded rectangle with the specified width and height.
|
public static CreateCapsule ( float height, float endRadius, int edges ) : Vertices | ||
height | float | Height (inner height + 2 * radius) of the capsule. |
endRadius | float | Radius of the capsule ends. |
edges | int | The number of edges of the capsule ends. The more edges, the more it resembles an capsule |
return | Vertices |
public static CreateCapsule ( float height, float topRadius, int topEdges, float bottomRadius, int bottomEdges ) : Vertices | ||
height | float | Height (inner height + radii) of the capsule. |
topRadius | float | Radius of the top. |
topEdges | int | The number of edges of the top. The more edges, the more it resembles an capsule |
bottomRadius | float | Radius of bottom. |
bottomEdges | int | The number of edges of the bottom. The more edges, the more it resembles an capsule |
return | Vertices |
public static CreateCircle ( float radius, int numberOfEdges ) : Vertices | ||
radius | float | The radius. |
numberOfEdges | int | The number of edges. The more edges, the more it resembles a circle |
return | Vertices |
public static CreateEdge ( Vector2 start, Vector2 end ) : Vertices | ||
start | Vector2 | The first point. |
end | Vector2 | The second point. |
return | Vertices |
public static CreateEllipse ( float xRadius, float yRadius, int numberOfEdges ) : Vertices | ||
xRadius | float | Width of the ellipse. |
yRadius | float | Height of the ellipse. |
numberOfEdges | int | The number of edges. The more edges, the more it resembles an ellipse |
return | Vertices |
public static CreateGear ( float radius, int numberOfTeeth, float tipPercentage, float toothHeight ) : Vertices | ||
radius | float | The radius. |
numberOfTeeth | int | The number of teeth. |
tipPercentage | float | The tip percentage. |
toothHeight | float | Height of the tooth. |
return | Vertices |
public static CreatePolygon ( uint data, int width, int height, float hullTolerance, byte alphaTolerance, bool multiPartDetection, bool holeDetection ) : List |
||
data | uint | The texture data. |
width | int | The texture width. |
height | int | The texture height. |
hullTolerance | float | The hull tolerance. |
alphaTolerance | byte | The alpha tolerance. |
multiPartDetection | bool | if set to |
holeDetection | bool | if set to |
return | List |
public static CreatePolygon ( uint data, int width, int height ) : Vertices | ||
data | uint | The texture data. |
width | int | The texture width. |
height | int | The texture height. |
return | Vertices |
public static CreatePolygon ( uint data, int width, int height, bool holeDetection ) : Vertices | ||
data | uint | The texture data. |
width | int | The texture width. |
height | int | The texture height. |
holeDetection | bool | if set to |
return | Vertices |
public static CreateRectangle ( float hx, float hy ) : Vertices | ||
hx | float | the half-width. |
hy | float | the half-height. |
return | Vertices |
public static CreateRectangle ( float hx, float hy, Vector2 center, float angle ) : Vertices | ||
hx | float | the half-width. |
hy | float | the half-height. |
center | Vector2 | the center of the box in local coordinates. |
angle | float | the rotation of the box in local coordinates. |
return | Vertices |
public static CreateRoundedRectangle ( float width, float height, float xRadius, float yRadius, int segments ) : Vertices | ||
width | float | The width. |
height | float | The height. |
xRadius | float | The rounding X radius. |
yRadius | float | The rounding Y radius. |
segments | int | The number of segments to subdivide the edges. |
return | Vertices |