C# Класс FarseerPhysics.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.

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

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 FarseerPhysics.Collision.Shapes.Shape The shape.
index int The index.
Результат void