Search Unity

How to create a lifeleech-like particle effect?

Discussion in 'Editor & General Support' started by deLord, Jul 30, 2015.

  1. deLord

    deLord

    Joined:
    Oct 11, 2014
    Posts:
    306
    Hey there

    I was looking for tutorials or sth on google and youtube on this but didnt find any.

    I want to create a particle effect that connects 2 GameObjects. Those GOs will not always have the same distance, so I must make the particle system somehow variable. But what is the best way to do this?
    And btw: is there a way to easily scale particle effects with multiple nested particle effects?

    thx in advance
     
  2. deLord

    deLord

    Joined:
    Oct 11, 2014
    Posts:
    306
    bump .___.
     
  3. deLord

    deLord

    Joined:
    Oct 11, 2014
    Posts:
    306
  4. Sickwitit

    Sickwitit

    Joined:
    Dec 22, 2014
    Posts:
    123
    Curvy in the unity asset store, along with MagicBox, works great for that. Just implemented what you are talking about exactly.
     
  5. Tanaalethan

    Tanaalethan

    Joined:
    Sep 3, 2014
    Posts:
    17
    I've done this several times via scaling and rotation.
    In your script you'll need (rename at your leisure):
    fPos Vector3 ;; Particle is coming FROM, give this some centered location like a specific "particle" gameobject position
    tPos Vector3 ;; Same as fPos, but where you want it to go TO.
    ftDist Float ;; The distance in worldspace between the two positions

    Now create a particle that displays your graphic. Find its distance unit, be it 1, 10, 100, whatever.

    Instantiate that particle on top of fPos, rotate it towards tPos, scale it to match, and play the effect.
     
    deLord likes this.