co.uk.sentinelweb.ps.motion
Class VectorMotion

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

public class VectorMotion
extends Motion

This class can be used to use strokes as animation paths.

Author:
robert

Field Summary
 
Fields inherited from class co.uk.sentinelweb.ps.motion.Motion
timerLength, useTimer
 
Constructor Summary
VectorMotion(float[] x, float[] y, float z, int timerLength)
           
 
Method Summary
 boolean update(ParticleSystems.ParticleSystem.Particle pt)
          The main looping function for the motion - update the particle loc,vel,acc here.
 
Methods inherited from class co.uk.sentinelweb.ps.motion.Motion
cleanup, init
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VectorMotion

public VectorMotion(float[] x,
                    float[] y,
                    float z,
                    int timerLength)
Method Detail

update

public boolean update(ParticleSystems.ParticleSystem.Particle pt)
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:
pt - particle.
Returns:
true to continue, false to stop (will go to next motion if available).