Changed particle so it contains velocity[x,y] instead of velocity and direction. Added some get/set functions in emitter.