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
| localPoint | pc.Vec3 | The point on the entity where the contact occurred, relative to the entity. |
| localPointOther | pc.Vec3 | The point on the other entity where the contact occurred, relative to the other entity. |
| point | pc.Vec3 | The point on the entity where the contact occurred, in world space. |
| pointOther | pc.Vec3 | The point on the other entity where the contact occurred, in world space. |
| normal | pc.Vec3 | The normal vector of the contact on the other entity, in world space. |