public final class Sweep extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
float |
a |
float |
a0
World angles
|
float |
alpha0
Fraction of the current time step in the range [0,1] c0 and a0 are the positions at alpha0.
|
Vec2 |
c |
Vec2 |
c0
Center world positions
|
Vec2 |
localCenter
Local center of mass position
|
Constructor and Description |
---|
Sweep() |
Modifier and Type | Method and Description |
---|---|
void |
advance(float alpha)
Advance the sweep forward, yielding a new initial state.
|
void |
getTransform(Transform xf,
float beta)
Get the interpolated transform at a specific time.
|
void |
normalize() |
Sweep |
set(Sweep other) |
String |
toString() |
public final Vec2 localCenter
public final Vec2 c0
public final Vec2 c
public float a0
public float a
public float alpha0
public void normalize()
public void getTransform(Transform xf, float beta)
xf
- the result is placed here - must not be nullbeta
- the normalized time in [0,1]public void advance(float alpha)
alpha
- the new initial timeCopyright © 2018. All rights reserved.