C# 클래스 FarseerPhysics.Collision.Shapes.LoopShape

A loop Shape is a free form sequence of line segments that form a circular list. The loop may cross upon itself, but this is not recommended for smooth collision. The loop has double sided collision, so you can use inside and outside collision. Therefore, you may use any winding order.
상속: Shape
파일 보기 프로젝트 열기: scastle/Solitude 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Count int
Vertices Microsoft.Xna.Framework.Vector2[]

공개 메소드들

메소드 설명
Clone ( ) : Shape
ComputeAABB ( AABB &aabb, Transform &transform, int childIndex ) : void

Given a transform, compute the associated axis aligned bounding box for a child shape.

ComputeMass ( MassData &massData, float density ) : void

Chains have zero mass.

GetChildEdge ( EdgeShape &edge, int index ) : void

Get a child edge.

LoopShape ( ) : System.Diagnostics
RayCast ( RayCastOutput &output, RayCastInput &input, Transform &transform, int childIndex ) : bool

Cast a ray against a child shape.

TestPoint ( Transform &transform, Vector2 &point ) : bool

Test a point for containment in this shape. This only works for convex shapes.

메소드 상세

Clone() 공개 메소드

public Clone ( ) : Shape
리턴 Shape

ComputeAABB() 공개 메소드

Given a transform, compute the associated axis aligned bounding box for a child shape.
public ComputeAABB ( AABB &aabb, Transform &transform, int childIndex ) : void
aabb AABB The aabb results.
transform Transform The world transform of the shape.
childIndex int The child shape index.
리턴 void

ComputeMass() 공개 메소드

Chains have zero mass.
public ComputeMass ( MassData &massData, float density ) : void
massData MassData Returns the mass data for this shape.
density float The density in kilograms per meter squared.
리턴 void

GetChildEdge() 공개 메소드

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

LoopShape() 공개 메소드

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

RayCast() 공개 메소드

Cast a ray against a child shape.
public RayCast ( RayCastOutput &output, RayCastInput &input, Transform &transform, int childIndex ) : bool
output RayCastOutput The ray-cast results.
input RayCastInput The ray-cast input parameters.
transform Transform The transform to be applied to the shape.
childIndex int The child shape index.
리턴 bool

TestPoint() 공개 메소드

Test a point for containment in this shape. This only works for convex shapes.
public TestPoint ( Transform &transform, Vector2 &point ) : bool
transform Transform The shape world transform.
point Microsoft.Xna.Framework.Vector2 a point in world coordinates.
리턴 bool

프로퍼티 상세

Count 공개적으로 프로퍼티

The vertex count.
public int Count
리턴 int

Vertices 공개적으로 프로퍼티

The vertices. These are not owned/freed by the loop Shape.
public Vector2[],Microsoft.Xna.Framework Vertices
리턴 Microsoft.Xna.Framework.Vector2[]