ackb2d 0.9
3D Gamestudio Box 2d Wraper

b2Sweep.h File Reference

Go to the source code of this file.

Functions

b2Sweepb2Sweep_Create ()
 Create a b2Sweep instance.
void b2Sweep_Destroy (b2Sweep *sweep)
 Destroy the b2Sweep passed as parameter.
void b2Sweep_GetTransform (b2Sweep *sweep, b2Transform *xf, var alpha)
 Get the interpolated transform at a specific time.
void b2Sweep_Advance (b2Sweep *sweep, var t)
 Advance the sweep forward, yielding a new initial state.
void b2Sweep_Normalize (b2Sweep *sweep)
 Normalize the angles.
void b2Sweep_SetLocalCenter (b2Sweep *sweep, const VECTOR *localCenter)
 Set b2Sweep localCenter.
void b2Sweep_GetLocalCenter (b2Sweep *sweep, VECTOR *outCenter)
 Get b2Sweep localCenter.
void b2Sweep_SetC0 (b2Sweep *sweep, const VECTOR *c0)
 Set b2Sweep c0.
void b2Sweep_GetC0 (b2Sweep *sweep, VECTOR *outC0)
 Get b2Sweep c0.
void b2Sweep_SetC (b2Sweep *sweep, const VECTOR *c)
 Set b2Sweep c.
void b2Sweep_GetC (b2Sweep *sweep, VECTOR *outC)
 Get b2Sweep c0.
void b2Sweep_SetA0 (b2Sweep *sweep, var a0)
 Set b2Sweep a0.
var b2Sweep_GetA0 (b2Sweep *sweep)
 Get b2Sweep a0.
void b2Sweep_SetA (b2Sweep *sweep, var a)
 Set b2Sweep a.
var b2Sweep_GetA (b2Sweep *sweep)
 Get b2Sweep a.

Function Documentation

void b2Sweep_Advance ( b2Sweep sweep,
var  t 
)

Advance the sweep forward, yielding a new initial state.

Parameters:
sweepThe sweep instance
tthe new initial time.
b2Sweep* b2Sweep_Create ( )

Create a b2Sweep instance.

void b2Sweep_Destroy ( b2Sweep sweep)

Destroy the b2Sweep passed as parameter.

Parameters:
sweepThe weep instance to destroy
var b2Sweep_GetA ( b2Sweep sweep)

Get b2Sweep a.

world angles

Parameters:
sweepThe b2Sweep instance
Returns:
the current a value
var b2Sweep_GetA0 ( b2Sweep sweep)

Get b2Sweep a0.

world angles

Parameters:
sweepThe b2Sweep instance
Returns:
the current a0 value
void b2Sweep_GetC ( b2Sweep sweep,
VECTOR *  outC 
)

Get b2Sweep c0.

center world positions

Parameters:
sweepThe b2Sweep instance
outCA preinitialized vector to set the current c0 value into
void b2Sweep_GetC0 ( b2Sweep sweep,
VECTOR *  outC0 
)

Get b2Sweep c0.

center world positions

Parameters:
sweepThe b2Sweep instance
outC0A preinitialized vector to set the current c0 value into
void b2Sweep_GetLocalCenter ( b2Sweep sweep,
VECTOR *  outCenter 
)

Get b2Sweep localCenter.

local center of mass position

Parameters:
sweepThe b2Sweep instance
outCenterA preinitialized vector to set the localCenter into
void b2Sweep_GetTransform ( b2Sweep sweep,
b2Transform xf,
var  alpha 
)

Get the interpolated transform at a specific time.

Parameters:
sweepThe sweep instance
xfa preInitialized transform to put the result into
alphais a factor in [0,1], where 0 indicates t0.
void b2Sweep_Normalize ( b2Sweep sweep)

Normalize the angles.

void b2Sweep_SetA ( b2Sweep sweep,
var  a 
)

Set b2Sweep a.

world angles

Parameters:
sweepThe b2Sweep instance
aThe new a value
void b2Sweep_SetA0 ( b2Sweep sweep,
var  a0 
)

Set b2Sweep a0.

world angles

Parameters:
sweepThe b2Sweep instance
a0The new a0 value
void b2Sweep_SetC ( b2Sweep sweep,
const VECTOR *  c 
)

Set b2Sweep c.

center world positions

Parameters:
sweepThe b2Sweep instance
cThe new c value
void b2Sweep_SetC0 ( b2Sweep sweep,
const VECTOR *  c0 
)

Set b2Sweep c0.

center world positions

Parameters:
sweepThe b2Sweep instance
c0The new c0 value
void b2Sweep_SetLocalCenter ( b2Sweep sweep,
const VECTOR *  localCenter 
)

Set b2Sweep localCenter.

local center of mass position

Parameters:
sweepThe b2Sweep instance
localCenterThe new localCenter
 All Data Structures Files Functions Variables Typedefs Defines