Chipmunk2D Pro API Reference  7.0.1
 All Classes Functions Variables Typedefs Enumerations Enumerator Properties Groups Pages
Public Attributes | List of all members
cpContactPointSet Struct Reference

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

#include <cpArbiter.h>

Public Attributes

int count
 The number of contact points in the set.
 
cpVect normal
 The normal of the collision.
 
cpVect pointA
 The position of the contact on the surface of each shape.
 
cpFloat distance
 Penetration distance of the two shapes. More...
 

Detailed Description

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

Member Data Documentation

cpFloat cpContactPointSet::distance

Penetration distance of the two shapes.

Overlapping means it will be negative. This value is calculated as cpvdot(cpvsub(point2, point1), normal) and is ignored by cpArbiterSetContactPointSet().


The documentation for this struct was generated from the following file: