|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jbox2d.common.Sweep
public class Sweep
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.
Field Summary | |
---|---|
float |
a
World angles |
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
Center world positions |
Vec2 |
c0
Center world positions |
Vec2 |
localCenter
Local center of mass position |
Constructor Summary | |
---|---|
Sweep()
|
Method Summary | |
---|---|
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 argCloneFrom)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public final Vec2 localCenter
public final Vec2 c0
public final Vec2 c
public float a0
public float a
public float alpha0
Constructor Detail |
---|
public Sweep()
Method Detail |
---|
public String toString()
toString
in class Object
public final void normalize()
public final Sweep set(Sweep argCloneFrom)
public final void getTransform(Transform xf, float beta)
xf
- the result is placed here - must not be nullt
- the normalized time in [0,1].public final void advance(float alpha)
alpha
- the new initial time.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |