Torque2D Reference

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Attributes | List of all members
b2ContactEdge Struct Reference

`#include <b2Contact.h>`

## Public Attributes
b2Body * | other
| provides quick access to the other body attached. More...
b2Contact * | contact
| the contact More...
b2ContactEdge * | prev
| the previous contact edge in the body's contact list More...
b2ContactEdge * | next
| the next contact edge in the body's contact list More...

## Detailed Description

A contact edge is used to connect bodies and contacts together in a contact graph where each body is a node and each contact is an edge. A contact edge belongs to a doubly linked list maintained in each attached body. Each contact has two contact nodes, one for each attached body.

## Member Data Documentation

b2Contact* contact

the contact

b2ContactEdge* next

the next contact edge in the body's contact list

b2Body* other

provides quick access to the other body attached.

b2ContactEdge* prev

the previous contact edge in the body's contact list

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

- Box2D/Dynamics/Contacts/b2Contact.h