Search Unity

Particles spawn too far from the source

Discussion in 'Getting Started' started by JJ_FX, Nov 9, 2018.

  1. JJ_FX

    JJ_FX

    Joined:
    Mar 19, 2015
    Posts:
    76
    Hi,

    So unity particles does the same thing like in many other software. That the velocity is beeing added right on the first step. So when you have high velocities they spawn really far from the actual source.

    Im trying to shoot a bullets from my gun. I've found that velocity 150 for me looks most believable, not too fast, not too slow. But its still very fast. Usually you dont see a bullet. But if you do a trail from the bullet... wel..

    I can actually see that the trail start few meters in front of the gun.

    What are the ways fixing that?
     
  2. Antypodish

    Antypodish

    Joined:
    Apr 29, 2014
    Posts:
    10,779
    So you use particles for bullet trail?

    If anything, you probably want to increase Emission -> Rate Over Time
     
  3. There is a reason why we usually not simulate gunfire with physics... it's messy, it's not really working because of the necessary optimizations. Your next problem will be (or was previously) that your bullets aren't colliding with certain colliders below some thickness... Well.
     
    Antypodish likes this.