Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice
  2. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  3. 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

[VFX Graph] - Bound particles to a volume

Discussion in 'Graphics Experimental Previews' started by Grimreaper358, Oct 23, 2019.

  1. Grimreaper358

    Grimreaper358

    Joined:
    Apr 8, 2013
    Posts:
    789
    Is it possible to bound particles to a volume in the VFX Graph?
    I'm trying to create a particle system that only operates inside this Cone Position/Volume.

    upload_2019-10-23_14-19-25.png

    I want the particles to spawn at the volume bounds and it's depth all around the volume. The spawning part I got working but I also have an Issue. A lot of the particle tends to spawn at the origin of the volume and bundle there (Where the line spans the radius)

    upload_2019-10-23_14-22-19.png

    Is there a way to prevent this from happening? Maybe I went about creating this the wrong way?
     
  2. konsic

    konsic

    Joined:
    Oct 19, 2015
    Posts:
    995
    You need to use thickness parameter in the Cone Position so that it spawns only on the bounds bounds.

    You could use negative directional velocity in the Update to make particles go inwards rather than outwards.