PhysicsShape.Contact
The contact between two shapes. By convention the manifold normal points from shape A to shape B. See PhysicsBody.GetContacts and PhysicsShape.GetContacts.
Read time 1 minuteLast updated 13 days ago
Definition
- Type: Struct
- Namespace: Unity.U2D.Physics
- Assembly: UnityEngine.PhysicsCore2DModule
- Implements: IEquatable<Contact>
public readonly struct PhysicsShape.Contact : IEquatable<PhysicsShape.Contact>
Properties
Property | Description |
|---|---|
| contactId | The unique Id of this contact. This contact is volatile and may be destroyed automatically when the world is modified or simulated therefore it should always be checked for validity with _isValid. |
| manifold | The contact manifold describing the contact. |
| shapeA | One of the shapes involved in the contact. |
| shapeB | The other shape involved in the contact. |