ackb2d 0.9
3D Gamestudio Box 2d Wraper

b2JointDef.h File Reference

Go to the source code of this file.

Functions

b2JointDefb2JointDef_Create ()
 Create b2JointDef.
void b2JointDef_Destroy (b2JointDef *def)
void b2JointDef_SetType (b2JointDef *def, var type)
var b2JointDef_GetType (b2JointDef *def)
void b2JointDef_SetUserData (b2JointDef *def, void *userData)
void * b2JointDef_GetUserData (b2JointDef *def)
void b2JointDef_SetBodyA (b2JointDef *def, b2Body *body)
b2Bodyb2JointDef_GetBodyA (b2JointDef *def)
void b2JointDef_SetBodyB (b2JointDef *def, b2Body *body)
b2Bodyb2JointDef_GetBodyB (b2JointDef *def)
void b2JointDef_SetCollideConnected (b2JointDef *def, var flag)
var b2JointDef_GetCollideConnected (b2JointDef *def)

Function Documentation

b2JointDef* b2JointDef_Create ( )

Create b2JointDef.

void b2JointDef_Destroy ( b2JointDef def)

Destroy JointDef

Parameters:
defthe joint definition.
b2Body* b2JointDef_GetBodyA ( b2JointDef def)

The first attached body.

Parameters:
defthe joint definition.
bodythe attached body.
b2Body* b2JointDef_GetBodyB ( b2JointDef def)

The second attached body.

Parameters:
defthe joint definition.
bodythe attached body.
var b2JointDef_GetCollideConnected ( b2JointDef def)

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

Parameters:
defthe joint definition.
var b2JointDef_GetType ( b2JointDef def)

Get Joint type The joint type is set automatically for concrete joint types.

Parameters:
defthe joint definition.
void* b2JointDef_GetUserData ( b2JointDef def)

Get attached joint data

Parameters:
defthe joint definition.
void b2JointDef_SetBodyA ( b2JointDef def,
b2Body body 
)

The first attached body.

Parameters:
defthe joint definition.
bodythe attached body.
void b2JointDef_SetBodyB ( b2JointDef def,
b2Body body 
)

The second attached body.

Parameters:
defthe joint definition.
bodythe attached body.
void b2JointDef_SetCollideConnected ( b2JointDef def,
var  flag 
)

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

Parameters:
defthe joint definition.
flagthe flag.
void b2JointDef_SetType ( b2JointDef def,
var  type 
)

Set Joint type The joint type is set automatically for concrete joint types.

Parameters:
defthe joint definition.
typethe joint type
void b2JointDef_SetUserData ( b2JointDef def,
void *  userData 
)

Use this to attach application specific data to your joints.

Parameters:
defthe joint definition.
userDatathe data attached to the joint
 All Data Structures Files Functions Variables Typedefs Defines