A Contact object contains the contact information for a contact callback.
Note
Contact objects will be reused from callback to callback. Do not keep any references to a Contact object, always copy any information you need to your own objects.
Summary
A Vector3 representing the location of the contact in the local space of object A.
Syntax
var contactOnA = contact.localPointOnA;
Note
Read Only
Summary
A Vector3 representing the location of the contact in the local space of object B.
Syntax
var contactOnB = contact.localPointOnB;
Note
Read Only
Summary
A Vector3 representing the normal of the surface in world space at the contact location on object B.
Syntax
var contactNormalOnB = contact.worldNormalOnB;
Note
Read Only
Summary
A boolean value, true if the contact was added on the last simulation update, false otherwise.
Syntax
if (contact.added)
{
...
}
Note
Read Only