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.
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
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