PhysicsShape.ContactManifold
A contact manifold describes the contact points between colliding shapes. Speculative collision is used so some contact points may be separated, a property available per-contact.
Read time 1 minuteLast updated 13 days ago
Definition
- Type: Struct
- Namespace: Unity.U2D.Physics
- Assembly: UnityEngine.PhysicsCore2DModule
- Implements: IEnumerable<ManifoldPoint>, IEnumerable
public readonly struct PhysicsShape.ContactManifold : IEnumerable<PhysicsShape.ContactManifold.ManifoldPoint>, IEnumerable
Properties
Property | Description |
|---|---|
| this[] | Indexer to access the manifold points. |
| normal | The unit normal vector in world space, points from shape A to bodyB |
| pointCount | The number of manifold points available, in the range [0, 2]. |
| points | The manifold points, up to two are possible. |
| rollingImpulse | Angular impulse applied for rolling resistance (N " m " s = kg * m^2 / s). |
| speculativePointCount | The number of manifold points available that are speculative, in the range [0, 2]. |
Structs
Struct | Description |
|---|---|
| PhysicsShape.ContactManifold.ManifoldPoint | Contains all the detail related to the geometry and dynamics of the contact. You may use the _totalNormalImpulse to determine if there was an interaction during the time step. |
| PhysicsShape.ContactManifold.ManifoldPointArray | Fixed-sized manifold point array. |