C# Класс Project290.Physics.Collision.DistanceProxy

A distance proxy is used by the GJK algorithm. It encapsulates any shape.
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
GetSupport ( Vector2 direction ) : int

Get the supporting vertex index in the given direction.

GetSupportVertex ( Vector2 direction ) : Vector2

Get the supporting vertex in the given direction.

GetVertex ( int index ) : Vector2

Get a vertex by index. Used by b2Distance.

Set ( Shape shape, int index ) : void

Initialize the proxy using the given shape. The shape must remain in scope while the proxy is in use.

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

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

Get the supporting vertex index in the given direction.
public GetSupport ( Vector2 direction ) : int
direction Vector2 The direction.
Результат int

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

Get the supporting vertex in the given direction.
public GetSupportVertex ( Vector2 direction ) : Vector2
direction Vector2 The direction.
Результат Vector2

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

Get a vertex by index. Used by b2Distance.
public GetVertex ( int index ) : Vector2
index int The index.
Результат Vector2

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

Initialize the proxy using the given shape. The shape must remain in scope while the proxy is in use.
public Set ( Shape shape, int index ) : void
shape Project290.Physics.Collision.Shapes.Shape The shape.
index int The index.
Результат void