|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.threerings.tudey.util.ActorAdvancer
com.threerings.tudey.util.MobileAdvancer
public class MobileAdvancer
Advancer for mobile actors.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.threerings.tudey.util.ActorAdvancer |
|---|
ActorAdvancer.Environment |
| Field Summary | |
|---|---|
protected Mobile |
_mobile
A casted reference to the mobile. |
protected Vector2f |
_otrans
Used to store the mobile's original translation. |
protected Vector2f |
_penetration
Stores the penetration vector. |
protected static float |
MAX_SUBSTEP
The length, in seconds, of the longest substep we're willing to take. |
| Fields inherited from class com.threerings.tudey.util.ActorAdvancer |
|---|
_actor, _environment, _shape, _timestamp, _transform |
| Constructor Summary | |
|---|---|
MobileAdvancer(ActorAdvancer.Environment environment,
Mobile mobile,
int timestamp)
Creates a new advancer for the supplied mobile. |
|
| Method Summary | |
|---|---|
void |
init(Actor actor,
int timestamp)
(Re)initializes the advancer. |
protected void |
mobileStep(float elapsed,
int timestamp)
Executes a step on the mobile. |
protected void |
step(float elapsed)
Takes an Euler step of the specified length. |
protected void |
substep(float elapsed,
int timestamp)
Executes a substep of the specified duration. |
protected void |
takeSubsteps(float elapsed)
Executes the substeps required for the current step. |
| Methods inherited from class com.threerings.tudey.util.ActorAdvancer |
|---|
advance, getActor, getTimestamp, jump, transfer, updateShape |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Mobile _mobile
protected Vector2f _penetration
protected Vector2f _otrans
protected static final float MAX_SUBSTEP
| Constructor Detail |
|---|
public MobileAdvancer(ActorAdvancer.Environment environment,
Mobile mobile,
int timestamp)
| Method Detail |
|---|
public void init(Actor actor,
int timestamp)
ActorAdvancer
init in class ActorAdvancerprotected void step(float elapsed)
ActorAdvancer
step in class ActorAdvancerprotected void takeSubsteps(float elapsed)
protected void substep(float elapsed,
int timestamp)
timestamp - the timestamp at the end of the substep.
protected void mobileStep(float elapsed,
int timestamp)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||