API Reference

Class List

SingleContactResult

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

Summary

Properties

a

The first entity involved in the contact.

b

The second entity involved in the contact.

impulse

The total accumulated impulse applied by the constraint solver during the last sub-step.

localPointA

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

localPointB

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

normal

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

pointA

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

pointB

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

Details

Properties

Entitya

The first entity involved in the contact.

Entityb

The second entity involved in the contact.

numberimpulse

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

Vec3localPointA

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

Vec3localPointB

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

Vec3normal

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

Vec3pointA

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

Vec3pointB

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