API Reference

Class List

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

apc.Entity

The first entity involved in the contact.

bpc.Entity

The second entity involved in the contact.

contactPointpc.ContactPoint

The 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 occurred, relative to A.

pc.Vec3localPointB

The point on Entity B where the contact occurred, 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 occurred, in world space.

pc.Vec3pointB

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