ackb2d 0.9
3D Gamestudio Box 2d Wraper

b2ContactListener Struct Reference

#include <b2Types.h>

Data Fields

void * beginContactCallback
void * endContactCallback
void * presolveCallback
void * postSolveCallback
void * userData

Detailed Description

Implement this class to get contact information. You can use these results for things like sounds and game logic. You can also get contact results by traversing the contact lists after the time step. However, you might miss some contacts because continuous physics leads to sub-stepping. Additionally you may receive multiple callbacks for the same contact in a single time step. You should strive to make your callbacks efficient because there may be many callbacks per time step.

Warning:
You cannot create/destroy Box2D entities inside these callbacks.

Definition at line 101 of file b2Types.h.


Field Documentation

Definition at line 103 of file b2Types.h.

Definition at line 104 of file b2Types.h.

Definition at line 106 of file b2Types.h.

Definition at line 105 of file b2Types.h.

void* userData

Definition at line 107 of file b2Types.h.


The documentation for this struct was generated from the following file:
 All Data Structures Files Functions Variables Typedefs Defines