ackb2d 0.9
3D Gamestudio Box 2d Wraper

b2MouseJointDef.h File Reference

Go to the source code of this file.

Functions

b2MouseJointDefb2MouseJointDef_Create ()
 Create b2MouseJointDef.
void b2MouseJointDef_Destroy (b2MouseJointDef *def)
void b2MouseJointDef_SetTarget (b2MouseJointDef *def, const VECTOR *target)
void b2MouseJointDef_GetTarget (b2MouseJointDef *def, VECTOR *outTarget)
 Get target.
void b2MouseJointDef_SetMaxForce (b2MouseJointDef *def, var maxForce)
var b2MouseJointDef_GetMaxForce (b2MouseJointDef *def)
 Get maxForce.
void b2MouseJointDef_SetFrequencyHz (b2MouseJointDef *def, var frequencyHz)
 The response speed.
var b2MouseJointDef_GetFrequencyHz (b2MouseJointDef *def)
 Get frequencyHz.
void b2MouseJointDef_SetDampingRatio (b2MouseJointDef *def, var dampingRatio)
 The damping ratio. 0 = no damping, 1 = critical damping.
var b2MouseJointDef_GetDampingRatio (b2MouseJointDef *def)
 Get dampingRatio.

Function Documentation

b2MouseJointDef* b2MouseJointDef_Create ( )

Create b2MouseJointDef.

void b2MouseJointDef_Destroy ( b2MouseJointDef def)

Destroy b2MouseJointDef

Parameters:
defthe joint definition.
var b2MouseJointDef_GetDampingRatio ( b2MouseJointDef def)

Get dampingRatio.

var b2MouseJointDef_GetFrequencyHz ( b2MouseJointDef def)

Get frequencyHz.

var b2MouseJointDef_GetMaxForce ( b2MouseJointDef def)

Get maxForce.

void b2MouseJointDef_GetTarget ( b2MouseJointDef def,
VECTOR *  outTarget 
)

Get target.

void b2MouseJointDef_SetDampingRatio ( b2MouseJointDef def,
var  dampingRatio 
)

The damping ratio. 0 = no damping, 1 = critical damping.

void b2MouseJointDef_SetFrequencyHz ( b2MouseJointDef def,
var  frequencyHz 
)

The response speed.

void b2MouseJointDef_SetMaxForce ( b2MouseJointDef def,
var  maxForce 
)

The maximum constraint force that can be exerted to move the candidate body. Usually you will express as some multiple of the weight (multiplier * mass * gravity).

void b2MouseJointDef_SetTarget ( b2MouseJointDef def,
const VECTOR *  target 
)

The initial world target point. This is assumed to coincide with the body anchor initially.

 All Data Structures Files Functions Variables Typedefs Defines