C# Class FarseerPhysics.Collision.DistanceProxy

A distance proxy is used by the GJK algorithm. It encapsulates any shape.
Afficher le fichier Open project: prime31/Nez Class Usage Examples

Méthodes publiques

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

Method Details

getSupport() public méthode

Get the supporting vertex index in the given direction.
public getSupport ( Vector2 direction ) : int
direction Vector2 The direction.
Résultat int

getSupportVertex() public méthode

Get the supporting vertex in the given direction.
public getSupportVertex ( Vector2 direction ) : Vector2
direction Vector2 The direction.
Résultat Vector2

set() public méthode

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.
Résultat void