Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


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 9 days ago

Definition

public readonly struct PhysicsShape.Contact

Properties

Property

Description

contactIdThe 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 PhysicsShape.ContactId.isValid.
manifoldThe contact manifold describing the contact.
shapeAOne of the shapes involved in the contact.
shapeBThe other shape involved in the contact.