struct CP::ContactPointSet

Overview

A struct that wraps up the important collision data for an arbiter.

Defined in:

chipmunk/collision.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(points : Slice(ContactPoint), normal : Vect) #

[View source]

Instance Method Detail

def count : Int32 #

The number of contact points in the set.


[View source]
def normal : Vect #

The normal of the collision.


[View source]
def points : Slice(ContactPoint) #

The contact points (at most 2).


[View source]