Chipmunk2D Pro API Reference  6.2.1
 All Classes Functions Variables Typedefs Properties Groups Pages
Public Attributes | List of all members
cpArbiter Struct Reference

A colliding pair of shapes. More...

#include <cpArbiter.h>

Public Attributes

cpFloat e
 Calculated value to use for the elasticity coefficient. More...
 
cpFloat u
 Calculated value to use for the friction coefficient. More...
 
cpVect surface_vr
 Calculated value to use for applying surface velocities. More...
 
cpDataPointer data
 User definable data pointer. More...
 

Detailed Description

A colliding pair of shapes.

Member Data Documentation

cpDataPointer cpArbiter::data

User definable data pointer.

The value will persist for the pair of shapes until the separate() callback is called. NOTE: If you need to clean up this pointer, you should implement the separate() callback to do it.

cpFloat cpArbiter::e

Calculated value to use for the elasticity coefficient.

Override in a pre-solve collision handler for custom behavior.

cpVect cpArbiter::surface_vr

Calculated value to use for applying surface velocities.

Override in a pre-solve collision handler for custom behavior.

cpFloat cpArbiter::u

Calculated value to use for the friction coefficient.

Override in a pre-solve collision handler for custom behavior.


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