Class: SingleContactResult

pc.SingleContactResult

Object holding the result of a contact between two rigid bodies

Constructor

new SingleContactResult(a, b, contactPoint)

Create a new SingleContactResult
Parameters:
Name Type Description
a pc.Entity The first entity involved in the contact
b pc.Entity The second entity involved in the contact
contactPoint pc.ContactPoint The contact point between the two entities
Properties:
Name Type Description
a pc.Entity The first entity involved in the contact
b pc.Entity The second entity involved in the contact
localPointA pc.Vec3 The point on Entity A where the contact occurred, relative to A
localPointB pc.Vec3 The point on Entity B where the contact occurred, relative to B
pointA pc.Vec3 The point on Entity A where the contact occurred, in world space
pointB pc.Vec3 The point on Entity B where the contact occurred, in world space
normal pc.Vec3 The normal vector of the contact on Entity B, in world space
Source: