SFML community forums

Help => General => Topic started by: lafoniz on January 29, 2015, 07:16:03 pm

Title: A little help regarding Thor library
Post by: lafoniz on January 29, 2015, 07:16:03 pm
Hey guys, I have successfully installed the newest Thor library with 2.2 SFML and I wanted to test some particle examples as it is the most interesting thing for me, but I have had hit a wall and need little help.

In Thor there is class called "UniversalEmitter" and in this class we have public member called "setParticlePosition". Last time if you wanted to create a randomize position around a circle you would have to type
emitter.setParticlePosition( thor::Distributions::circle(center, radius) );
but today "thor::Distributions" doesn't exist anymore and there is only "thor::Distributions". Documentation about the latter is a bit enigmatic for me and I cannot guess proper syntax to have the same effect. Is anybody familiar with it?

I would be grateful for any kind of help this, Lafoniz
Title: Re: A little help regarding Thor library
Post by: Hapax on January 29, 2015, 10:12:03 pm
today "thor::Distributions" doesn't exist anymore and there is only "thor::Distributions".
What's the difference between the former and the latter?

Also, isn't this the function that you think is missing:
https://github.com/Bromeon/Thor/blob/master/include/Thor/Math/Distributions.hpp#L72
?

And the first function that uses its result:
https://github.com/Bromeon/Thor/blob/master/include/Thor/Particles/Emitters.hpp#L105