Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. Dismiss Notice

Question Fire whip how to

Discussion in 'Visual Effect Graph' started by deathripper, Apr 26, 2024.

  1. deathripper

    deathripper

    Joined:
    Jul 18, 2012
    Posts:
    5
    Hello,

    As a hobby project I am working on a game inspired by Super Stardust HD, basically a twin-stick shooter where you control your character using the left stick (or WASD) and fire in the direction you aim using the Right-stick (or Mouse). The game is set on a sphere just like in Super Stardust. I wanted to try out a few things now and got interested in a specific attack Stardust is offering. Its basically something like a "flame whip" it should rapid projectiles in a straight line however when you change your aim direction the projectiles don't just fly off into the distance as it happens with bullets, instead they follow your rotation. Kind of hard to explain so i link a video below so you can take a look at it.


    I was wondering what the best approach to achieve something like this would be. using bullets with a trail and then modifying their flight pattern using some kind of sin /cos calculations, or is it better to just go with a particle system but then how would you achieve such behaviour based on your aim direction?
    Would appreciate any tips / thoughts.