Search Unity

Question Can I make plane collisions with particles respect the particles velocity direction?

Discussion in 'General Graphics' started by FissicsPeep, Dec 12, 2021.

  1. FissicsPeep

    FissicsPeep

    Joined:
    Jan 14, 2014
    Posts:
    80
    I have a particle system for a splash of water. Each water particle is a small mesh. It's simple. The particles are emitted upwards from a cone emitter and fall back down under gravity.

    I have setup a plane at 0,0,0 facing upwards to kill the particles when they come back down and hit the water again.

    The problem is the mesh particles are instantly colliding with the plane when they are spawned. It feels like plane collisions really should respect the direction the particle is travelling in. If my particle is moving away from the plane, don't collide.

    Is there a way to do this somehow? Or any alternatives? (I guess I could loop over the particles and do this myself in an Update script)

    Thanks in advance.
     
  2. richardkettlewell

    richardkettlewell

    Unity Technologies

    Joined:
    Sep 9, 2015
    Posts:
    2,285
    We always project the particles onto the correct side of the plane, so we don’t currently have a way to ignore these kinds of collisions
     
    FissicsPeep likes this.
  3. FissicsPeep

    FissicsPeep

    Joined:
    Jan 14, 2014
    Posts:
    80
    Okay, thanks for confirming!
     
    richardkettlewell likes this.