I'm working a project that uses SFML, Thor and Artemis, and I've been working Thor's particle system into my design over the last few hours, but I've come up against some unexpected behaviour.
The Thor Particles Tutorial states that
In every frame, the particle system invokes each of the attached affectors and lets it modify the particles. However, when I create a simple example with a ColorAnimation affector as well as a FadeAnimation affector, the fading is ignored and only the colour is adjusted.
thor::ParticleSystem system;
emitter.setEmissionRate(1);
emitter.setParticleLifetime(thor::Distributions::uniform(sf::seconds(0.9), sf::seconds(1.1)));
system.addEmitter(emitter);
thor::FadeAnimation fader(0.5, 0,5);
system.addAffector(thor::AnimationAffector(fader));
thor::ColorGradient gradient;
gradient[0.0] = sf::Color::Red;
gradient[1.0] = sf::Color::Blue;
thor::ColorAnimation colorer(gradient);
system.addAffector(thor::AnimationAffector(colorer));
Each frame, I call update on the system, and pass it to my sf::RenderWindow to be drawn. I've successfully tested fade and colour individually, they just don't seem to work in conjunction with eachother. Is this a known bug, or am I forgetting to do something / doing something incorrectly?