struct CP::ContactPointSet::ContactPoint
- CP::ContactPointSet::ContactPoint
- Struct
- Value
- Object
Overview
Contains information about a contact point.
Defined in:
chipmunk/collision.crConstructors
Instance Method Summary
-
#distance : Float64
Penetration distance of the two shapes.
-
#point_a : Vect
The position of the contact on the surface of the first shape.
-
#point_b : Vect
The position of the contact on the surface of the second shape.
Constructor Detail
Instance Method Detail
def distance : Float64
#
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=
.