|
||||||||||
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 |
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 t)
Advance the sweep forward, yielding a new initial state. |
void |
getTransform(Transform xf,
float alpha)
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
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 alpha)
xf
- the result is placed here - must not be nullt
- the normalized time in [0,1].public final void advance(float t)
t
- the new initial time.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |