struct

CP::ContactPointSet::ContactPoint

Inherits Struct / Value / Object

Contains information about a contact point.

Constructors

new(point_a : Vect, point_b : Vect, distance : Number)
Source

Instance methods

distance

Penetration distance of the two shapes. Overlapping means it will be negative.

This value is calculated as (point2 - point1).dot(normal) and is ignored by Arbiter#contact_point_set=.

Source
point_a

The position of the contact on the surface of the first shape.

Source
point_b

The position of the contact on the surface of the second shape.

Source