API Reference

Class List

pc.ContactPoint

Object holding the result of a contact between two Entities.

Summary

Properties

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

localPointpc.Vec3

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

localPointOtherpc.Vec3

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

pointpc.Vec3

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

pointOtherpc.Vec3

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

normalpc.Vec3

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

Properties

pc.Vec3localPoint

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

pc.Vec3localPointOther

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

pc.Vec3normal

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

pc.Vec3point

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

pc.Vec3pointOther

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