ContactPoint

ContactPoint

new ContactPoint(point, normal, dist)

Source:
A struct that wraps up the important collision data for an arbiter.
Parameters:
Name Type Description
point cp.Vect The position of the contact on the surface of each shape.
normal cp.Vect The normal of the collision.
dist number Penetration distance of the two shapes.

Members

dist :number

Source:
Type:
  • number

normal :cp.Vect

Source:
Type:

point :cp.Vect

Source:
Type: