@Override
    public void processOneGameTick(long lastFrameTime) {
        entityManager = LLP.entityManager;
        for (UUID u : entityManager.getAllEntitiesPossessingComponent(Oscillator.class)) {
            Velocity v = entityManager.getComponent(u, Velocity.class);
            Oscillator o = entityManager.getComponent(u, Oscillator.class);
            long time = o.currentTime % (o.timeA + o.timeB);
            if(time<o.timeA){
                v.xVelocity = o.velocityAx;
                v.yVelocity = o.velocityAy;
            } else {
                v.xVelocity = o.velocityBx;
                v.yVelocity = o.velocityBy;
            }
            o.currentTime = (o.currentTime + 1) % (o.timeA + o.timeB);
        }
    }