public void updatePosition(Particle particle,long elapsedTime){
  Vector3f speed=particle.getSpeed();
  float delta=elapsedTime / 1000.0f;
  float dx=speed.x * delta;
  float dy=speed.y * delta;
  float dz=speed.z * delta;
  Vector3f pos=particle.getPosition();
  particle.setPosition(pos.x + dx,pos.y + dy,pos.z + dz);
}

public void updatePosition ( Particle particle , long elapsedTime ) { Vector3f speed = particle . getSpeed ( ) ; float delta = elapsedTime / 1000.0f ; float dx = speed . x * delta ; float dy = speed . y * delta ; float dz = speed . z * delta ; Vector3f pos = particle . getPosition ( ) ; particle . setPosition ( pos . x + dx , pos . y + dy , pos . z + dz ) ; }
updates a particle position
