API Reference

Class List

pc.ContactPoint

Object holding the result of a contact between two Entities.

Summary

Properties

localPointThe point on the entity where the contact occured, relative to the entity
localPointOtherThe point on the other entity where the contact occured, relative to the other entity
normalThe normal vector of the contact on the other entity, in world space
pointThe point on the entity where the contact occured, in world space
pointOtherThe point on the other entity where the contact occured, in world space

Details

Constructor

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

Create a new ContactPoint

Parameters

localPointpc.Vec3The point on the entity where the contact occured, relative to the entity
localPointOtherpc.Vec3The point on the other entity where the contact occured, relative to the other entity
pointpc.Vec3The point on the entity where the contact occured, in world space
pointOtherpc.Vec3The point on the other entity where the contact occured, in world space
normalpc.Vec3The normal vector of the contact on the other entity, in world space

Properties

pc.Vec3localPoint

The point on the entity where the contact occured, relative to the entity

pc.Vec3localPointOther

The point on the other entity where the contact occured, 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 occured, in world space

pc.Vec3pointOther

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