ackb2d 0.9
3D Gamestudio Box 2d Wraper

b2GearJointDef.h File Reference

Go to the source code of this file.

Defines

#define b2GearJointDef_SetBodyA(def, body)   b2JointDef_SetBodyA(def, body)
 Set Body A.
#define b2GearJointDef_SetBodyB(def, body)   b2JointDef_SetBodyB(def, body)
 Set Body B.

Functions

b2GearJointDefb2GearJointDef_Create ()
 Create b2GearJoint.
void b2GearJointDef_Destroy (b2GearJointDef *def)
void b2GearJointDef_SetJoint1 (b2GearJointDef *def, b2Joint *joint1)
b2Jointb2GearJointDef_GetJoint1 (b2GearJointDef *def)
void b2GearJointDef_SetJoint2 (b2GearJointDef *def, b2Joint *joint2)
void b2GearJointDef_SetRatio (b2GearJointDef *def, var ratio)
var b2GearJointDef_GetRatio (b2GearJointDef *def)

Define Documentation

#define b2GearJointDef_SetBodyA (   def,
  body 
)    b2JointDef_SetBodyA(def, body)

Set Body A.

Parameters:
defThe b2JointDef
bodyThe body

Definition at line 43 of file b2GearJointDef.h.

#define b2GearJointDef_SetBodyB (   def,
  body 
)    b2JointDef_SetBodyB(def, body)

Set Body B.

Parameters:
defThe b2JointDef
bodyThe body

Definition at line 49 of file b2GearJointDef.h.


Function Documentation

b2GearJointDef* b2GearJointDef_Create ( )

Create b2GearJoint.

void b2GearJointDef_Destroy ( b2GearJointDef def)

Destroy b2GearJoint

Parameters:
defthe joint definition.
b2Joint * b2GearJointDef_GetJoint1 ( b2GearJointDef def)

Get the first revolute/prismatic joint attached to the gear joint.

Parameters:
defthe joint definition

Get the second revolute/prismatic joint attached to the gear joint.

Parameters:
defthe joint definition
var b2GearJointDef_GetRatio ( b2GearJointDef def)

Get the second revolute/prismatic joint attached to the gear joint.

Parameters:
defthe joint definition
void b2GearJointDef_SetJoint1 ( b2GearJointDef def,
b2Joint joint1 
)

Set the first revolute/prismatic joint attached to the gear joint.

Parameters:
defthe joint definition
joint1the first joint
void b2GearJointDef_SetJoint2 ( b2GearJointDef def,
b2Joint joint2 
)

Set the second revolute/prismatic joint attached to the gear joint.

Parameters:
defthe joint definition
joint1the first joint
void b2GearJointDef_SetRatio ( b2GearJointDef def,
var  ratio 
)

Set the gear ratio.

Parameters:
defthe joint definition
joint1the first joint
 All Data Structures Files Functions Variables Typedefs Defines