C# 클래스 Box2D.Collision.Distance.DistanceProxy

A distance proxy is used by the GJK algorithm. It encapsulates any shape. TODO: see if we can just do assignments with m_vertices, instead of copying stuff over
파일 보기 프로젝트 열기: gerich-home/box2dnet 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Buffer Box2D.Common.Vec2[]
Radius float
Vertices Box2D.Common.Vec2[]

공개 메소드들

메소드 설명
DistanceProxy ( ) : System
GetSupport ( Vec2 d ) : int

Get the supporting vertex index in the given direction.

GetSupportVertex ( Vec2 d ) : Vec2

Get the supporting vertex in the given direction.

GetVertex ( int index ) : Vec2

Get a vertex by index. Used by Distance.

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.

메소드 상세

DistanceProxy() 공개 메소드

public DistanceProxy ( ) : System
리턴 System

GetSupport() 공개 메소드

Get the supporting vertex index in the given direction.
public GetSupport ( Vec2 d ) : int
d Box2D.Common.Vec2
리턴 int

GetSupportVertex() 공개 메소드

Get the supporting vertex in the given direction.
public GetSupportVertex ( Vec2 d ) : Vec2
d Box2D.Common.Vec2
리턴 Box2D.Common.Vec2

GetVertex() 공개 메소드

Get a vertex by index. Used by Distance.
public GetVertex ( int index ) : Vec2
index int
리턴 Box2D.Common.Vec2

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 Box2D.Collision.Shapes.Shape
index int
리턴 void

프로퍼티 상세

Buffer 공개적으로 프로퍼티

public Vec2[],Box2D.Common Buffer
리턴 Box2D.Common.Vec2[]

Radius 공개적으로 프로퍼티

public float Radius
리턴 float

Vertices 공개적으로 프로퍼티

public Vec2[],Box2D.Common Vertices
리턴 Box2D.Common.Vec2[]