Class b2Contact
The contact between two fixtures whose fat boxes overlap: its manifold, touching state, friction and restitution. The world creates and destroys contacts; a contact exists while the boxes overlap, touching or not.
public abstract class b2Contact
- Inheritance
-
b2Contact
- Inherited Members
- Extension Methods
Remarks
Reference: Box2D/Dynamics/Contacts/b2Contact.cpp.
Constructors
b2Contact(b2Fixture, int, b2Fixture, int)
A contact between two fixture children, enabled, with mixed friction and restitution.
protected b2Contact(b2Fixture fA, int indexA, b2Fixture fB, int indexB)
Parameters
fAb2FixtureFixture A.
indexAintFixture A's child index.
fBb2FixtureFixture B.
indexBintFixture B's child index.
Properties
ChildIndexA
Fixture A's child index (pybox2d's childIndexA).
public int ChildIndexA { get; }
Property Value
ChildIndexB
Fixture B's child index (pybox2d's childIndexB).
public int ChildIndexB { get; }
Property Value
Enabled
Whether the contact is enabled for this step (pybox2d's enabled); updates re-enable it.
public bool Enabled { get; set; }
Property Value
FixtureA
Fixture A (pybox2d's fixtureA).
public b2Fixture FixtureA { get; }
Property Value
FixtureB
Fixture B (pybox2d's fixtureB).
public b2Fixture FixtureB { get; }
Property Value
Friction
The mixed friction (pybox2d's friction).
public float Friction { get; set; }
Property Value
Restitution
The mixed restitution (pybox2d's restitution).
public float Restitution { get; set; }
Property Value
TangentSpeed
The conveyor-belt tangent speed (pybox2d's tangentSpeed).
public float TangentSpeed { get; set; }
Property Value
Touching
Whether the shapes are touching (pybox2d's touching).
public bool Touching { get; }