pc.SingleContactResult
Object holding the result of a contact between two rigid bodies.
Summary
Properties
| a | The first entity involved in the contact. |
| b | The second entity involved in the contact. |
| localPointA | The point on Entity A where the contact occurred, relative to A. |
| localPointB | The point on Entity B where the contact occurred, relative to B. |
| normal | The normal vector of the contact on Entity B, in world space. |
| pointA | The point on Entity A where the contact occurred, in world space. |
| pointB | The point on Entity B where the contact occurred, in world space. |
Details
Constructor
SingleContactResult(a, b, contactPoint)
Create a new SingleContactResult.
Parameters
| 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. |