C# 클래스 Project290.Physics.Dynamics.Contacts.Contact

The class manages contact between two shapes. A contact exists for each overlapping AABB in the broad-phase (except if filtered). Therefore a contact object may exist that has no contact points.
파일 보기 프로젝트 열기: scastle/Solitude 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
FixtureA Fixture
FixtureB Fixture
Manifold Project290.Physics.Collision.Manifold
TOI float

공개 메소드들

메소드 설명
FlagForFiltering ( ) : void

Flag this contact for filtering. Filtering will occur the next time step.

GetManifold ( Manifold &manifold ) : void

Get the contact manifold. Do not modify the manifold unless you understand the internals of Box2D.

GetWorldManifold ( Vector2 &normal, FixedArray2 &points ) : void

Gets the world manifold.

IsTouching ( ) : bool

Determines whether this contact is touching.

비공개 메소드들

메소드 설명
Contact ( Fixture fA, int indexA, Fixture fB, int indexB ) : System
Create ( Fixture fixtureA, int indexA, Fixture fixtureB, int indexB ) : Contact
Destroy ( ) : void
Evaluate ( Manifold &manifold, Transform &transformA, Transform &transformB ) : void

Evaluate this contact with your own manifold and transforms.

Reset ( Fixture fA, int indexA, Fixture fB, int indexB ) : void
Update ( ContactManager contactManager ) : void

Update the contact manifold and touching status. Note: do not assume the fixture AABBs are overlapping or are valid.

메소드 상세

FlagForFiltering() 공개 메소드

Flag this contact for filtering. Filtering will occur the next time step.
public FlagForFiltering ( ) : void
리턴 void

GetManifold() 공개 메소드

Get the contact manifold. Do not modify the manifold unless you understand the internals of Box2D.
public GetManifold ( Manifold &manifold ) : void
manifold Project290.Physics.Collision.Manifold The manifold.
리턴 void

GetWorldManifold() 공개 메소드

Gets the world manifold.
public GetWorldManifold ( Vector2 &normal, FixedArray2 &points ) : void
normal Vector2
points FixedArray2
리턴 void

IsTouching() 공개 메소드

Determines whether this contact is touching.
public IsTouching ( ) : bool
리턴 bool

프로퍼티 상세

FixtureA 공개적으로 프로퍼티

public Fixture FixtureA
리턴 Fixture

FixtureB 공개적으로 프로퍼티

public Fixture FixtureB
리턴 Fixture

Manifold 공개적으로 프로퍼티

public Manifold,Project290.Physics.Collision Manifold
리턴 Project290.Physics.Collision.Manifold

TOI 공개적으로 프로퍼티

public float TOI
리턴 float