Search Unity

Problem with instantiated bullet particle system...

Discussion in 'General Graphics' started by the_Bad_Brad, Sep 25, 2017.

  1. the_Bad_Brad

    the_Bad_Brad

    Joined:
    Nov 2, 2014
    Posts:
    278
    I use a raycast system to simulate bullet effects. I just simply Instantiate the particle effect where the raycast hits such as on a wall for example. I realized that the particle effect gets behind the mesh when the surface is uneven such as when in front of an uneven wall.

    So how do i fix this issue?

    Here is a screen recording of the issue

     
  2. ifurkend

    ifurkend

    Joined:
    Sep 4, 2012
    Posts:
    350
    I would have a particle system with world collision (1 life loss) for the initial bullet, use sub emitter on death to spawn the hit effect (your debris and smoke). Inherit negative velocity (either a constant or curve from -0.2 to 0) for the smoke particles so they are emitted in the opposite direction of the firing direction.
     
    theANMATOR2b and the_Bad_Brad like this.
  3. the_Bad_Brad

    the_Bad_Brad

    Joined:
    Nov 2, 2014
    Posts:
    278
    I will try that one soon