Search Unity

Inheriting position and velocity

Discussion in 'Visual Effect Graph' started by teeuni, Jul 22, 2020.

  1. teeuni

    teeuni

    Joined:
    Aug 5, 2014
    Posts:
    1
    I am spawning multiple particles around the particle that dies in contact with a sphere. These particles inherit position and velocity of dead particle. New particles collide and conform to the sphere. The problem is that they spawn with some offset that is somehow linked with Z axis velocity that is set on their spawn - it's shown on the video.



    Why is this happening? Is it some form of preventing them from intersecting with the sphere collider?
    I need them to spawn on the same Z axis position as their parent and then, with multiplied Z velocity hit the sphere and go in different directions.

    There is a graph that is responsible for particles that are spawned on around dead particle
    vfx_graph.jpg
     
  2. VladVNeykov

    VladVNeykov

    Unity Technologies

    Joined:
    Sep 16, 2016
    Posts:
    550
    Hi @teeuni ,

    It's a bit hard to tell; does the original particle have any bounce? If so, you might be inheriting the velocity from that.
    If you are working with high velocities, you could also try to lower the Fixed Time Step in Edit > Project Settings > VFX to get some extra simulation steps.