- Home /
Slow Particle Down Inside Collider
Hello Unity Communty,
I am trying to create a effect using the particle system that looks like blood splatter in a 2D game. And example of this effect is in the game Bloody Trapland.
I have a vague idea on how to do using unity's particle collision, but no matter what I do, the particles will just collide and stop. I wish for them to slow down while inside the collider until they come to a complete stop.
How might I be able to achieve this in unity (if I can even achieve this).
If I cannot do this with the current particle system I will have to make a script that creates small quads that slow down when a particle hits, but I wish to avoid having to do that :C
Thanks in advance, Lachee
Answer by b1gry4n · Oct 12, 2014 at 10:50 PM
Create a clone of your particle system and change its emission rate to 0, bursts to time:0.00, particles:1
Adjust your new particle system so its velocity is slowed down over time.
On your original particle system under "sub emitters" drag your new particle system into the "collision" field. Also under "collision" (right above sub emitters) change the "bounce" field to 0 and the "lifetime loss" field to 1.
Those are the important fields, you may have to tweak other settings depending on the particle you have.
What this does is : Every time your particle collides with the collider it will kill and replace itself with your new particle system as a sub emitter. If done right it should appear as if that single particle has slowed down.
I use this technique with rain drops hitting the ground and creating a splash
Your answer
Follow this Question
Related Questions
particle collision 2 Answers
Unity Particle System collision detection problem 1 Answer
2D Detect collisions of a 2D block only on left/right (not top/bottom) 0 Answers
Objects don't collide 1 Answer
Particles and 2D games 1 Answer