1.8 KiB
Planck.js API Doc › Globals › ManifoldPoint
Class: 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.
This structure is stored across time steps, so we keep it small.
Note: impulses are used for internal caching and may not provide reliable contact forces, especially for high speed collisions.
Hierarchy
- ManifoldPoint
Index
Properties
Properties
id
• id: ContactID‹› = new ContactID()
Defined in src/collision/Manifold.ts:178
Uniquely identifies a contact point between two shapes to facilatate warm starting
localPoint
• localPoint: Vec2‹› = Vec2.zero()
Defined in src/collision/Manifold.ts:166
Usage depends on 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.
normalImpulse
• normalImpulse: number = 0
Defined in src/collision/Manifold.ts:170
The non-penetration impulse
tangentImpulse
• tangentImpulse: number = 0
Defined in src/collision/Manifold.ts:174
The friction impulse