C# Class FarseerPhysics.Collision.DistanceProxy

A distance proxy is used by the GJK algorithm. It encapsulates any shape.
ファイルを表示 Open project: prime31/Nez Class Usage Examples

Public Methods

Method 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 method

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

getSupportVertex() public method

Get the supporting vertex in the given direction.
public getSupportVertex ( Vector2 direction ) : Vector2
direction Vector2 The direction.
return Vector2

set() public method

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.
return void