# b2JointDef Struct Reference

Joint definitions are used to construct joints. More...

`#include <b2Joint.h>`

Inheritance diagram for b2JointDef:

List of all members.

## Public Member Functions
| b2JointDef ()
## Public Attributes
b2JointType | type
| The joint type is set automatically for concrete joint types.
void * | userData
| Use this to attach application specific data to your joints.
b2Body * | bodyA
| The first attached body.
b2Body * | bodyB
| The second attached body.
bool | collideConnected
| Set this flag to true if the attached bodies should collide.

## Detailed Description

Joint definitions are used to construct joints.

## Constructor & Destructor Documentation

b2JointDef::b2JointDef | ( |  | ) | `[inline]`

## Member Data Documentation

b2Body* b2JointDef::bodyA

The first attached body.

b2Body* b2JointDef::bodyB

The second attached body.

bool b2JointDef::collideConnected

Set this flag to true if the attached bodies should collide.

b2JointType b2JointDef::type

The joint type is set automatically for concrete joint types.

void* b2JointDef::userData

Use this to attach application specific data to your joints.

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

- Box2D/Box2D/Dynamics/Joints/b2Joint.h