C# 클래스 Project290.Physics.Dynamics.Fixture

A fixture is used to attach a Shape to a body for collision detection. A fixture inherits its transform from its parent. Fixtures hold additional non-geometric data such as friction, collision filters, etc. Fixtures are created via Body.CreateFixture. Warning: You cannot reuse fixtures.
상속: IDisposable
파일 보기 프로젝트 열기: scastle/Solitude 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
AfterCollision AfterCollisionEventHandler
BeforeCollision BeforeCollisionEventHandler
OnCollision OnCollisionEventHandler
OnSeparation OnSeparationEventHandler
Proxies Project290.Physics.Dynamics.FixtureProxy[]
ProxyCount int

공개 메소드들

메소드 설명
Dispose ( ) : void
Fixture ( Body body, Shape shape ) : System
Fixture ( Body body, Shape shape, Object userData ) : System
GetAABB ( AABB &aabb, int childIndex ) : void

Get the fixture's AABB. This AABB may be enlarge and/or stale. If you need a more accurate AABB, compute it using the Shape and the body transform.

GetMassData ( ) : MassData

Get the mass data for this fixture. The mass data is based on the density and the Shape. The rotational inertia is about the Shape's origin.

RayCast ( RayCastOutput &output, RayCastInput &input, int childIndex ) : bool

Cast a ray against this Shape.

TestPoint ( Vector2 &point ) : bool

Test a point for containment in this fixture.

비공개 메소드들

메소드 설명
CreateProxies ( BroadPhase broadPhase, Transform &xf ) : void
Destroy ( ) : void
DestroyProxies ( BroadPhase broadPhase ) : void
Synchronize ( BroadPhase broadPhase, Transform &transform1, Transform &transform2 ) : void

메소드 상세

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

Fixture() 공개 메소드

public Fixture ( Body body, Shape shape ) : System
body Body
shape Project290.Physics.Collision.Shapes.Shape
리턴 System

Fixture() 공개 메소드

public Fixture ( Body body, Shape shape, Object userData ) : System
body Body
shape Project290.Physics.Collision.Shapes.Shape
userData Object
리턴 System

GetAABB() 공개 메소드

Get the fixture's AABB. This AABB may be enlarge and/or stale. If you need a more accurate AABB, compute it using the Shape and the body transform.
public GetAABB ( AABB &aabb, int childIndex ) : void
aabb Project290.Physics.Collision.AABB The aabb.
childIndex int Index of the child.
리턴 void

GetMassData() 공개 메소드

Get the mass data for this fixture. The mass data is based on the density and the Shape. The rotational inertia is about the Shape's origin.
public GetMassData ( ) : MassData
리턴 Project290.Physics.Collision.Shapes.MassData

RayCast() 공개 메소드

Cast a ray against this Shape.
public RayCast ( RayCastOutput &output, RayCastInput &input, int childIndex ) : bool
output Project290.Physics.Collision.RayCastOutput The ray-cast results.
input Project290.Physics.Collision.RayCastInput The ray-cast input parameters.
childIndex int Index of the child.
리턴 bool

TestPoint() 공개 메소드

Test a point for containment in this fixture.
public TestPoint ( Vector2 &point ) : bool
point Vector2 A point in world coordinates.
리턴 bool

프로퍼티 상세

AfterCollision 공개적으로 프로퍼티

Fires after two shapes has collided and are solved. This gives you a chance to get the impact force.
public AfterCollisionEventHandler AfterCollision
리턴 AfterCollisionEventHandler

BeforeCollision 공개적으로 프로퍼티

Fires when two fixtures are close to each other. Due to how the broadphase works, this can be quite inaccurate as shapes are approximated using AABBs.
public BeforeCollisionEventHandler BeforeCollision
리턴 BeforeCollisionEventHandler

OnCollision 공개적으로 프로퍼티

Fires when two shapes collide and a contact is created between them. Note that the first fixture argument is always the fixture that the delegate is subscribed to.
public OnCollisionEventHandler OnCollision
리턴 OnCollisionEventHandler

OnSeparation 공개적으로 프로퍼티

Fires when two shapes separate and a contact is removed between them. Note that the first fixture argument is always the fixture that the delegate is subscribed to.
public OnSeparationEventHandler OnSeparation
리턴 OnSeparationEventHandler

Proxies 공개적으로 프로퍼티

public FixtureProxy[],Project290.Physics.Dynamics Proxies
리턴 Project290.Physics.Dynamics.FixtureProxy[]

ProxyCount 공개적으로 프로퍼티

public int ProxyCount
리턴 int