C# Class 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.
Afficher le fichier Open project: scastle/Solitude Class Usage Examples

Méthodes publiques

Свойство Type Description
FixtureA Fixture
FixtureB Fixture
Manifold Project290.Physics.Collision.Manifold
TOI float

Méthodes publiques

Méthode Description
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.

Private Methods

Méthode Description
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.

Method Details

FlagForFiltering() public méthode

Flag this contact for filtering. Filtering will occur the next time step.
public FlagForFiltering ( ) : void
Résultat void

GetManifold() public méthode

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.
Résultat void

GetWorldManifold() public méthode

Gets the world manifold.
public GetWorldManifold ( Vector2 &normal, FixedArray2 &points ) : void
normal Vector2
points FixedArray2
Résultat void

IsTouching() public méthode

Determines whether this contact is touching.
public IsTouching ( ) : bool
Résultat bool

Property Details

FixtureA public_oe property

public Fixture FixtureA
Résultat Fixture

FixtureB public_oe property

public Fixture FixtureB
Résultat Fixture

Manifold public_oe property

public Manifold,Project290.Physics.Collision Manifold
Résultat Project290.Physics.Collision.Manifold

TOI public_oe property

public float TOI
Résultat float