Object holding the result of a contact between two rigid bodies.

Properties

The first entity involved in the contact.

The second entity involved in the contact.

impulse: number

The total accumulated impulse applied by the constraint solver during the last sub-step. Describes how hard two bodies collided.

localPointA: Vec3

The point on Entity A where the contact occurred, relative to A.

localPointB: Vec3

The point on Entity B where the contact occurred, relative to B.

normal: Vec3

The normal vector of the contact on Entity B, in world space.

pointA: Vec3

The point on Entity A where the contact occurred, in world space.

pointB: Vec3

The point on Entity B where the contact occurred, in world space.