C# 클래스 Project290.Physics.Collision.DistanceProxy

A distance proxy is used by the GJK algorithm. It encapsulates any shape.
파일 보기 프로젝트 열기: scastle/Solitude 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.

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