Constructor
new ContactPoint(localPoint, localPointOther, point, pointOther, normal)
Create a new ContactPoint
Parameters:
Name | Type | Description |
---|---|---|
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 |
Properties:
Name | Type | Description |
---|---|---|
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 |