Displaying particle math ;-;

Discussion in 'Plugin Development' started by MrPotatoMuncher, May 25, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    MrPotatoMuncher

    Hey
    Does anyone know what crazy math codename is using to do this

    I really want to know I've tried but failed :/
     
  2. Offline

    Dako

    Looks like sinus and cosinus with increasing their coefficient and the x/z offfset.
     
  3. Offline

    mine-care

    I'm interested any example?

    :S I always wanted to make such stuff

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 8, 2016
  4. Offline

    MrPotatoMuncher

    I've created particles in a circle around a players head before like a halo, using sin and cos, but I'm not really the best mathematician either so it was hard to work out, this is even harder as well because where ever you look is the direction it goes
    Any maths geniuses that can help out with some formulas and stuff is welcome :)
     
  5. Offline

    mine-care

  6. Offline

    NathanWolf

  7. Offline

    mine-care

  8. Offline

    NathanWolf


    It looks just like that in-game. I use this one for a ton of effects in my own plugin, it looks very nice as a "gust" effect with different particles, for instance.

    Are you using EffectLib, or trying to re-create this from scratch? The math is right there in the code, in a pretty nice/simple block. I can't say as I understand it, but that's why I use EffectLib ;)
     
  9. Offline

    flaaghara

    This is where multivariable calculus is most likely needed. I can tell you that spirals are essentially defined parametrically; the coordinate direction in which the spiral is propagating is represented by a simple parameter like 't'. The other two coordinates would be defined by sin(t) and cos(t). Flipping the sin and cos functions would make the spiral spin the other way. There's a ton of other cool shapes that you can make if you read up on the subject.
     
Thread Status:
Not open for further replies.

Share This Page