C# Класс Box2D.Collision.ManifoldPoint

A manifold point is a contact point belonging to a contact manifold. It holds details related to the geometry and dynamics of the contact points. The local point usage depends on the manifold type:
  • e_circles: the local center of circleB
  • e_faceA: the local center of cirlceB or the clip point of polygonB
  • e_faceB: the clip point of polygonA
This structure is stored across time steps, so we keep it small.
Note: the impulses are used for internal caching and may not provide reliable contact forces, especially for high speed collisions.
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
Id ContactID
LocalPoint Box2D.Common.Vec2
NormalImpulse float
TangentImpulse float

Открытые методы

Метод Описание
ManifoldPoint ( ) : Box2D.Common

Blank manifold point with everything zeroed out.

ManifoldPoint ( ManifoldPoint cp ) : Box2D.Common

Creates a manifold point as a copy of the given point

Set ( ManifoldPoint cp ) : void

Sets this manifold point form the given one

Описание методов

ManifoldPoint() публичный метод

Blank manifold point with everything zeroed out.
public ManifoldPoint ( ) : Box2D.Common
Результат Box2D.Common

ManifoldPoint() публичный метод

Creates a manifold point as a copy of the given point
public ManifoldPoint ( ManifoldPoint cp ) : Box2D.Common
cp ManifoldPoint point to copy from
Результат Box2D.Common

Set() публичный метод

Sets this manifold point form the given one
public Set ( ManifoldPoint cp ) : void
cp ManifoldPoint the point to copy from
Результат void

Описание свойств

Id публичное свойство

uniquely identifies a contact point between two shapes
public ContactID Id
Результат ContactID

LocalPoint публичное свойство

usage depends on manifold type
public Vec2,Box2D.Common LocalPoint
Результат Box2D.Common.Vec2

NormalImpulse публичное свойство

the non-penetration impulse
public float NormalImpulse
Результат float

TangentImpulse публичное свойство

the friction impulse
public float TangentImpulse
Результат float