C# Class Box2D.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: gerich-home/box2dnet Class Usage Examples

Méthodes publiques

Свойство Type Description
Flags ContactFlags
NodeA ContactEdge
NodeB ContactEdge
Prev Contact
Toi float
ToiCount float

Protected Properties

Свойство Type Description
Pool IWorldPool

Méthodes publiques

Méthode Description
Evaluate ( Manifold manifold, Transform xfA, Transform xfB ) : void
GetWorldManifold ( WorldManifold worldManifold ) : void

Get the world manifold.

Init ( Fixture fA, int indexA, Fixture fB, int indexB ) : void

initialization for pooling

MixFriction ( float friction1, float friction2 ) : float

Friction mixing law. The idea is to allow either fixture to drive the restitution to zero. For example, anything slides on ice.

MixRestitution ( float restitution1, float restitution2 ) : float

Restitution mixing law. The idea is allow for anything to bounce off an inelastic surface. For example, a superball bounces on anything.

ResetFriction ( ) : void
ResetRestitution ( ) : void
SetFlagForFiltering ( ) : void

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

Update ( IContactListener listener ) : void

Méthodes protégées

Méthode Description
Contact ( IWorldPool argPool ) : System

Method Details

Contact() protected méthode

protected Contact ( IWorldPool argPool ) : System
argPool IWorldPool
Résultat System

Evaluate() public abstract méthode

public abstract Evaluate ( Manifold manifold, Transform xfA, Transform xfB ) : void
manifold Box2D.Collision.Manifold
xfA Box2D.Common.Transform
xfB Box2D.Common.Transform
Résultat void

GetWorldManifold() public méthode

Get the world manifold.
public GetWorldManifold ( WorldManifold worldManifold ) : void
worldManifold Box2D.Collision.WorldManifold
Résultat void

Init() public méthode

initialization for pooling
public Init ( Fixture fA, int indexA, Fixture fB, int indexB ) : void
fA Fixture
indexA int
fB Fixture
indexB int
Résultat void

MixFriction() public static méthode

Friction mixing law. The idea is to allow either fixture to drive the restitution to zero. For example, anything slides on ice.
public static MixFriction ( float friction1, float friction2 ) : float
friction1 float
friction2 float
Résultat float

MixRestitution() public static méthode

Restitution mixing law. The idea is allow for anything to bounce off an inelastic surface. For example, a superball bounces on anything.
public static MixRestitution ( float restitution1, float restitution2 ) : float
restitution1 float
restitution2 float
Résultat float

ResetFriction() public méthode

public ResetFriction ( ) : void
Résultat void

ResetRestitution() public méthode

public ResetRestitution ( ) : void
Résultat void

SetFlagForFiltering() public méthode

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

Update() public méthode

public Update ( IContactListener listener ) : void
listener IContactListener
Résultat void

Property Details

Flags public_oe property

public ContactFlags Flags
Résultat ContactFlags

NodeA public_oe property

public ContactEdge,Box2D.Dynamics.Contacts NodeA
Résultat ContactEdge

NodeB public_oe property

public ContactEdge,Box2D.Dynamics.Contacts NodeB
Résultat ContactEdge

Pool protected_oe property

protected IWorldPool Pool
Résultat IWorldPool

Prev public_oe property

public Contact,Box2D.Dynamics.Contacts Prev
Résultat Contact

Toi public_oe property

public float Toi
Résultat float

ToiCount public_oe property

public float ToiCount
Résultat float