C# Class FarseerPhysics.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: -ShapeType.Circles: the local center of circleB -SeparationFunction.FaceA: the local center of cirlceB or the clip point of polygonB -SeparationFunction.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.
Mostra file Open project: prime31/Nez Class Usage Examples

Public Properties

Property Type Description
id ContactID
localPoint Vector2
normalImpulse float
tangentImpulse float

Property Details

id public_oe property

Uniquely identifies a contact point between two Shapes
public ContactID,FarseerPhysics.Collision id
return ContactID

localPoint public_oe property

Usage depends on manifold type
public Vector2 localPoint
return Vector2

normalImpulse public_oe property

The non-penetration impulse
public float normalImpulse
return float

tangentImpulse public_oe property

The friction impulse
public float tangentImpulse
return float