Just a small question: How good is the development version of the particle system? Is it still under heavy, constant changes?
When the SFML API is broken as a result of the new naming convention, I will exploit the opportunity to modify some things. This concerns especially the smart pointer ownership, I am probably not going to use thor::ResourcePtr in the future. Details are explained
in my recent post. I have also thought about making thor::Emitter more abstract (at the moment, many properties are already predefined, decreasing flexibility for own derivates).
What do you think about this, are you annoyed of ResourcePtr? Should I use shared_ptr instead, or something completely different to hold the textures?
And are there other suggestions about the Particles API? Now is a good moment to announce them
BTW, I started using the particle system but I can't seem to find a way to emit particles with an angle offset. I thought SetEmissionAngle() would be the answer, but it doesn't do what I'm saying. Is there any way to do it?
The emission angle determines how "spread" particles are emitted, i.e. if they're just thrown towards a line (0°), in a half circle (180°), etc.
To influence the direction, use thor::DirectionalEmitter::SetVelocity(). This function expects a vector, you can construct one with a specific angle using thor::PolarVector2f, for example:
thor::PolarVector2f direction(10.f, 90.f);
// length 10, angle 90°
// i.e. the same as cartesian sf::Vector2f(0.f, 10.f)
thor::DirectionalEmitter::Ptr emitter = ...
emitter->SetVelocity(direction);
And finally, there's also the option to create a custom emitter class by deriving from thor::Emitter.