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. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  3. Unity support for visionOS is now available. Learn more in our blog post.
    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.