Go to the source code of this file.
Functions |
b2Sweep * | b2Sweep_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:
-
sweep | The sweep instance |
t | the new initial time. |
void b2Sweep_Destroy |
( |
b2Sweep * |
sweep | ) |
|
Destroy the b2Sweep passed as parameter.
- Parameters:
-
sweep | The weep instance to destroy |
var b2Sweep_GetA |
( |
b2Sweep * |
sweep | ) |
|
Get b2Sweep a.
world angles
- Parameters:
-
- Returns:
- the current a value
var b2Sweep_GetA0 |
( |
b2Sweep * |
sweep | ) |
|
Get b2Sweep a0.
world angles
- Parameters:
-
- Returns:
- the current a0 value
void b2Sweep_GetC |
( |
b2Sweep * |
sweep, |
|
|
VECTOR * |
outC |
|
) |
| |
Get b2Sweep c0.
center world positions
- Parameters:
-
sweep | The b2Sweep instance |
outC | A preinitialized vector to set the current c0 value into |
void b2Sweep_GetC0 |
( |
b2Sweep * |
sweep, |
|
|
VECTOR * |
outC0 |
|
) |
| |
Get b2Sweep c0.
center world positions
- Parameters:
-
sweep | The b2Sweep instance |
outC0 | A 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:
-
sweep | The b2Sweep instance |
outCenter | A preinitialized vector to set the localCenter into |
Get the interpolated transform at a specific time.
- Parameters:
-
sweep | The sweep instance |
xf | a preInitialized transform to put the result into |
alpha | is a factor in [0,1], where 0 indicates t0. |
void b2Sweep_Normalize |
( |
b2Sweep * |
sweep | ) |
|
void b2Sweep_SetA |
( |
b2Sweep * |
sweep, |
|
|
var |
a |
|
) |
| |
Set b2Sweep a.
world angles
- Parameters:
-
sweep | The b2Sweep instance |
a | The new a value |
void b2Sweep_SetA0 |
( |
b2Sweep * |
sweep, |
|
|
var |
a0 |
|
) |
| |
Set b2Sweep a0.
world angles
- Parameters:
-
sweep | The b2Sweep instance |
a0 | The new a0 value |
void b2Sweep_SetC |
( |
b2Sweep * |
sweep, |
|
|
const VECTOR * |
c |
|
) |
| |
Set b2Sweep c.
center world positions
- Parameters:
-
sweep | The b2Sweep instance |
c | The new c value |
void b2Sweep_SetC0 |
( |
b2Sweep * |
sweep, |
|
|
const VECTOR * |
c0 |
|
) |
| |
Set b2Sweep c0.
center world positions
- Parameters:
-
sweep | The b2Sweep instance |
c0 | The new c0 value |
void b2Sweep_SetLocalCenter |
( |
b2Sweep * |
sweep, |
|
|
const VECTOR * |
localCenter |
|
) |
| |
Set b2Sweep localCenter.
local center of mass position
- Parameters:
-
sweep | The b2Sweep instance |
localCenter | The new localCenter |