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

A line segment (edge) shape. These can be connected in chains or loops to other edge shapes. The connectivity information is used to ensure correct contact normals.
상속: Shape
파일 보기 프로젝트 열기: gerich-home/box2dnet 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
HasVertex0 bool
HasVertex3 bool
Vertex0 Box2D.Common.Vec2
Vertex1 Box2D.Common.Vec2
Vertex2 Box2D.Common.Vec2
Vertex3 Box2D.Common.Vec2

공개 메소드들

메소드 설명
Clone ( ) : Shape
ComputeAABB ( AABB aabb, Transform xf, int childIndex ) : void
ComputeMass ( MassData massData, float density ) : void
EdgeShape ( ) : Box2D.Common
Raycast ( RayCastOutput output, RayCastInput input, Transform xf, int childIndex ) : bool
Set ( Vec2 v1, Vec2 v2 ) : void
TestPoint ( Transform xf, Vec2 p ) : bool

메소드 상세

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

EdgeShape() 공개 메소드

public EdgeShape ( ) : Box2D.Common
리턴 Box2D.Common

Raycast() 공개 메소드

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

Set() 공개 메소드

public Set ( Vec2 v1, Vec2 v2 ) : void
v1 Box2D.Common.Vec2
v2 Box2D.Common.Vec2
리턴 void

TestPoint() 공개 메소드

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

프로퍼티 상세

HasVertex0 공개적으로 프로퍼티

public bool HasVertex0
리턴 bool

HasVertex3 공개적으로 프로퍼티

public bool HasVertex3
리턴 bool

Vertex0 공개적으로 프로퍼티

optional adjacent vertex 1. Used for smooth collision
public Vec2,Box2D.Common Vertex0
리턴 Box2D.Common.Vec2

Vertex1 공개적으로 프로퍼티

edge vertex 1
public Vec2,Box2D.Common Vertex1
리턴 Box2D.Common.Vec2

Vertex2 공개적으로 프로퍼티

edge vertex 2
public Vec2,Box2D.Common Vertex2
리턴 Box2D.Common.Vec2

Vertex3 공개적으로 프로퍼티

optional adjacent vertex 2. Used for smooth collision
public Vec2,Box2D.Common Vertex3
리턴 Box2D.Common.Vec2