C# 클래스 FarseerPhysics.Collision.DistanceProxy

A distance proxy is used by the GJK algorithm. It encapsulates any shape.
파일 보기 프로젝트 열기: prime31/Nez 1 사용 예제들

공개 메소드들

메소드 설명
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