API Reference

Class List

pc.SingleContactResult

Object holding the result of a contact between two rigid bodies

Summary

Properties

aThe first entity involved in the contact
bThe second entity involved in the contact
localPointAThe point on Entity A where the contact occured, relative to A
localPointBThe point on Entity B where the contact occured, relative to B
normalThe normal vector of the contact on Entity B, in world space
pointAThe point on Entity A where the contact occured, in world space
pointBThe point on Entity B where the contact occured, in world space

Details

Constructor

SingleContactResult(a, b, contactPoint)

Create a new SingleContactResult

Parameters

apc.EntityThe first entity involved in the contact
bpc.EntityThe second entity involved in the contact
contactPointpc.ContactPointThe contact point between the two entities

Properties

pc.Entitya

The first entity involved in the contact

pc.Entityb

The second entity involved in the contact

pc.Vec3localPointA

The point on Entity A where the contact occured, relative to A

pc.Vec3localPointB

The point on Entity B where the contact occured, relative to B

pc.Vec3normal

The normal vector of the contact on Entity B, in world space

pc.Vec3pointA

The point on Entity A where the contact occured, in world space

pc.Vec3pointB

The point on Entity B where the contact occured, in world space