API Reference

Class List

ContactPoint

Object holding the result of a contact between two Entities.

Summary

Properties

impulse

The total accumulated impulse applied by the constraint solver during the last substep.

localPoint

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

localPointOther

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

normal

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

point

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

pointOther

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

Details

Constructor

ContactPoint([localPoint], [localPointOther], [point], [pointOther], [normal])

Create a new ContactPoint.

Parameters

localPointVec3

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

localPointOtherVec3

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

pointVec3

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

pointOtherVec3

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

normalVec3

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

Properties

numberimpulse

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

Vec3localPoint

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

Vec3localPointOther

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

Vec3normal

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

Vec3point

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

Vec3pointOther

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