C# 클래스 Box2D.Collision.Shapes.ChainShape

A chain shape is a free form sequence of line segments. The chain has two-sided collision, so you can use inside and outside collision. Therefore, you may use any winding order. Since there may be many vertices, they are allocated using Alloc. Connectivity information is used to create smooth collisions. WARNING The chain will not collide properly if there are self-intersections.
상속: Shape
파일 보기 프로젝트 열기: gerich-home/box2dnet 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Count int
HasNextVertex bool
HasPrevVertex bool
Vertices Box2D.Common.Vec2[]

공개 메소드들

메소드 설명
ChainShape ( ) : System.Diagnostics
Clone ( ) : Shape
ComputeAABB ( AABB aabb, Transform xf, int childIndex ) : void
ComputeMass ( MassData massData, float density ) : void
CreateChain ( Vec2 vertices, int count ) : void

Create a chain with isolated end vertices.

CreateLoop ( Vec2 vertices, int count ) : void

Create a loop. This automatically adjusts connectivity.

GetChildEdge ( EdgeShape edge, int index ) : void

Get a child edge.

Raycast ( RayCastOutput output, RayCastInput input, Transform xf, int childIndex ) : bool
TestPoint ( Transform xf, Vec2 p ) : bool

메소드 상세

ChainShape() 공개 메소드

public ChainShape ( ) : System.Diagnostics
리턴 System.Diagnostics

Clone() 공개 메소드

public Clone ( ) : Shape
리턴 Shape

ComputeAABB() 공개 메소드

public ComputeAABB ( AABB aabb, Transform xf, int childIndex ) : void
aabb AABB
xf Box2D.Common.Transform
childIndex int
리턴 void

ComputeMass() 공개 메소드

public ComputeMass ( MassData massData, float density ) : void
massData MassData
density float
리턴 void

CreateChain() 공개 메소드

Create a chain with isolated end vertices.
public CreateChain ( Vec2 vertices, int count ) : void
vertices Box2D.Common.Vec2 an array of vertices, these are copied
count int the vertex count
리턴 void

CreateLoop() 공개 메소드

Create a loop. This automatically adjusts connectivity.
public CreateLoop ( Vec2 vertices, int count ) : void
vertices Box2D.Common.Vec2 an array of vertices, these are copied
count int the vertex count
리턴 void

GetChildEdge() 공개 메소드

Get a child edge.
public GetChildEdge ( EdgeShape edge, int index ) : void
edge EdgeShape
index int
리턴 void

Raycast() 공개 메소드

public Raycast ( RayCastOutput output, RayCastInput input, Transform xf, int childIndex ) : bool
output RayCastOutput
input RayCastInput
xf Box2D.Common.Transform
childIndex int
리턴 bool

TestPoint() 공개 메소드

public TestPoint ( Transform xf, Vec2 p ) : bool
xf Box2D.Common.Transform
p Box2D.Common.Vec2
리턴 bool

프로퍼티 상세

Count 공개적으로 프로퍼티

public int Count
리턴 int

HasNextVertex 공개적으로 프로퍼티

public bool HasNextVertex
리턴 bool

HasPrevVertex 공개적으로 프로퍼티

public bool HasPrevVertex
리턴 bool

Vertices 공개적으로 프로퍼티

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