co.uk.sentinelweb.ps.motion
Class GotoMotion

java.lang.Object
  extended by co.uk.sentinelweb.ps.motion.Motion
      extended by co.uk.sentinelweb.ps.motion.GotoMotion

public class GotoMotion
extends Motion


Field Summary
 
Fields inherited from class co.uk.sentinelweb.ps.motion.Motion
timerLength, useTimer
 
Constructor Summary
GotoMotion(Motion m, int timerLength)
           
GotoMotion(Vector3D m, int timerLength)
           
 
Method Summary
 void cleanup(ParticleSystems.ParticleSystem.Particle pt)
          It's good form to remove any object you added to the particles renderObjects.
 void init(ParticleSystems.ParticleSystem.Particle pt)
          Called when the motion is activated on the particle.
 boolean update(ParticleSystems.ParticleSystem.Particle p)
          The main looping function for the motion - update the particle loc,vel,acc here.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GotoMotion

public GotoMotion(Motion m,
                  int timerLength)

GotoMotion

public GotoMotion(Vector3D m,
                  int timerLength)
Method Detail

init

public void init(ParticleSystems.ParticleSystem.Particle pt)
Description copied from class: Motion
Called when the motion is activated on the particle.

Overrides:
init in class Motion
Parameters:
pt - particle

cleanup

public void cleanup(ParticleSystems.ParticleSystem.Particle pt)
Description copied from class: Motion
It's good form to remove any object you added to the particles renderObjects. Called when the motion is deactivated.

Overrides:
cleanup in class Motion
Parameters:
pt - particle

update

public boolean update(ParticleSystems.ParticleSystem.Particle p)
Description copied from class: Motion
The main looping function for the motion - update the particle loc,vel,acc here.

Specified by:
update in class Motion
Parameters:
p - particle.
Returns:
true to continue, false to stop (will go to next motion if available).