C# Класс Box2DX.Collision.PolygonDef

Наследование: ShapeDef
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
VertexCount int
Vertices Box2DX.Common.Vec2[]

Открытые методы

Метод Описание
PolygonDef ( ) : System
SetAsBox ( float hx, float hy ) : void

Build vertices to represent an axis-aligned box.

SetAsBox ( float hx, float hy, Vec2 center, float angle ) : void

Build vertices to represent an oriented box.

Описание методов

PolygonDef() публичный Метод

public PolygonDef ( ) : System
Результат System

SetAsBox() публичный Метод

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.
Результат void

SetAsBox() публичный Метод

Build vertices to represent an oriented box.
public SetAsBox ( float hx, float hy, Vec2 center, float angle ) : void
hx float The half-width
hy float The half-height.
center Box2DX.Common.Vec2 The center of the box in local coordinates.
angle float The rotation of the box in local coordinates.
Результат void

Описание свойств

VertexCount публичное свойство

The number of polygon vertices.
public int VertexCount
Результат int

Vertices публичное свойство

The polygon vertices in local coordinates.
public Vec2[],Box2DX.Common Vertices
Результат Box2DX.Common.Vec2[]