C# Class Box2DX.Dynamics.PolygonDef

Convex polygon. The vertices must be ordered so that the outside of the polygon is on the right side of the edges (looking along the edge from start to end).
Inheritance: FixtureDef
Afficher le fichier Open project: KrugerHeavyIndustries/box2d-unity Class Usage Examples

Méthodes publiques

Свойство Type Description
VertexCount int
Vertices Vector2[]

Méthodes publiques

Méthode 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.

Method Details

PolygonDef() public méthode

public PolygonDef ( ) : System
Résultat System

SetAsBox() public méthode

Build vertices to represent an axis-aligned box.
public SetAsBox ( float hx, float hy ) : void
hx float The half-width
hy float The half-height.
Résultat void

SetAsBox() public méthode

Build vertices to represent an oriented box.
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.
Résultat void

Property Details

VertexCount public_oe property

The number of polygon vertices.
public int VertexCount
Résultat int

Vertices public_oe property

The polygon vertices in local coordinates.
public Vector2[] Vertices
Résultat Vector2[]