Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: A little help regarding Thor library  (Read 1458 times)

0 Members and 1 Guest are viewing this topic.

lafoniz

  • Newbie
  • *
  • Posts: 19
    • View Profile
A little help regarding Thor library
« 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

Hapax

  • Hero Member
  • *****
  • Posts: 3379
  • My number of posts is shown in hexadecimal.
    • View Profile
    • Links
Re: A little help regarding Thor library
« Reply #1 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
Selba Ward -SFML drawables
Cheese Map -Drawable Layered Tile Map
Kairos -Timing Library
Grambol
 *Hapaxia Links*

 

anything