Object holding the result of a contact between two Entities.

Properties

impulse: number

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

localPoint: Vec3

The point on the entity where the contact occurred, relative to the entity.

localPointOther: Vec3

The point on the other entity where the contact occurred, relative to the other entity.

normal: Vec3

The normal vector of the contact on the other entity, in world space.

point: Vec3

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

pointOther: Vec3

The point on the other entity where the contact occurred, in world space.