struct CP::ContactPointSet::ContactPoint

Overview

Contains information about a contact point.

Defined in:

chipmunk/collision.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(point_a : Vect, point_b : Vect, distance : Number) #

[View source]

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=.


[View source]
def point_a : Vect #

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


[View source]
def point_b : Vect #

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


[View source]