Posts: 18
Threads: 5
Joined: Sep 2017
Reputation:
1
29-09-2017, 12:30 PM
(This post was last modified: 29-09-2017, 01:01 PM by Kalidor.)
Thank you for the support!
Mmh, i'am trying to kill all particles in the collision loop.
At the beginning it works. Later the wrong particles get killed.
(maybe second time new created particles cause the problem)
Posts: 18
Threads: 5
Joined: Sep 2017
Reputation:
1
There is the same problem with this solution (with your new script).
Posts: 18
Threads: 5
Joined: Sep 2017
Reputation:
1
That's strange... My source code looks equal.
I will check it these days.
Posts: 18
Threads: 5
Joined: Sep 2017
Reputation:
1
OK, now it works!
I had to replace your script again.
No idea why Unity didn't notice the first replacement...
Posts: 7
Threads: 2
Joined: May 2018
Reputation:
0
Hey Josemendez,
This script works well but it gets very inefficient after around 1000 particles have been emitted, dropping down to 4fps.
Is there anyway to achieve this effect in a more efficient manner?
Such as set the particle life to zero based on it's z, x or y transform value rather than a collision?
Cheers!