Table Of Contents

Previous topic

19.9. The TriangleArray Object

Next topic

20. Low Level Particle System API

This Page

19.10. The Contact Object

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.

19.10.1. Properties

19.10.1.1. localPointOnA

Summary

A Vector3 representing the location of the contact in the local space of object A.

Syntax

var contactOnA = contact.localPointOnA;

Note

Read Only

19.10.1.2. localPointOnB

Summary

A Vector3 representing the location of the contact in the local space of object B.

Syntax

var contactOnB = contact.localPointOnB;

Note

Read Only

19.10.1.3. worldNormalOnB

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

19.10.1.4. added

Summary

A boolean value, true if the contact was added on the last simulation update, false otherwise.

Syntax

if (contact.added)
{
    ...
}

Note

Read Only