b2Sweep Struct Reference
This describes the motion of a body/shape for TOI computation. More...
Public Member Functions | |
void | GetXForm (b2XForm *xf, float32 t) const |
Get the interpolated transform at a specific time. | |
void | Advance (float32 t) |
Advance the sweep forward, yielding a new initial state. | |
Public Attributes | |
b2Vec2 | localCenter |
local center of mass position | |
b2Vec2 | c |
center world positions | |
float32 | a |
world angles | |
float32 | t0 |
time interval = [t0,1], where t0 is in [0,1] |
Detailed Description
This describes the motion of a body/shape for TOI computation.Shapes are defined with respect to the body origin, which may no coincide with the center of mass. However, to support dynamics we must interpolate the center of mass position.
Member Function Documentation
void b2Sweep::GetXForm | ( | b2XForm * | xf, | |
float32 | t | |||
) | const |
Get the interpolated transform at a specific time.
- Parameters:
-
t the normalized time in [0,1].
void b2Sweep::Advance | ( | float32 | t | ) |
Advance the sweep forward, yielding a new initial state.
- Parameters:
-
t the new initial time.
The documentation for this struct was generated from the following files:
- b2Math.h
- b2Math.cpp
Generated on Sun Apr 13 15:21:27 2008 for Box2D by 1.5.4