Table of Contents

Class b2Contact

Namespace
Gym.Box2D
Assembly
Gym.Environments.dll

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

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

fA b2Fixture

Fixture A.

indexA int

Fixture A's child index.

fB b2Fixture

Fixture B.

indexB int

Fixture B's child index.

Properties

ChildIndexA

Fixture A's child index (pybox2d's childIndexA).

public int ChildIndexA { get; }

Property Value

int

ChildIndexB

Fixture B's child index (pybox2d's childIndexB).

public int ChildIndexB { get; }

Property Value

int

Enabled

Whether the contact is enabled for this step (pybox2d's enabled); updates re-enable it.

public bool Enabled { get; set; }

Property Value

bool

FixtureA

Fixture A (pybox2d's fixtureA).

public b2Fixture FixtureA { get; }

Property Value

b2Fixture

FixtureB

Fixture B (pybox2d's fixtureB).

public b2Fixture FixtureB { get; }

Property Value

b2Fixture

Friction

The mixed friction (pybox2d's friction).

public float Friction { get; set; }

Property Value

float

Restitution

The mixed restitution (pybox2d's restitution).

public float Restitution { get; set; }

Property Value

float

TangentSpeed

The conveyor-belt tangent speed (pybox2d's tangentSpeed).

public float TangentSpeed { get; set; }

Property Value

float

Touching

Whether the shapes are touching (pybox2d's touching).

public bool Touching { get; }

Property Value

bool