How can I make Particles2D behave like actual matter (e.g. dirt)

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Frenggie

Hey. I am trying to make my Particles2D behave like actual dirt for example. They are only emitted when the player hits the ground (already figured that out with a RayCast2D).

How can I make them go up at normal speed, make them slower and slower until they reach their peak and then make them go down again. I think you know which kind of behaviour I’m talking about.

Thanks.

:bust_in_silhouette: Reply From: dustin

Try this:
-RigidBodyParticles2D by danboo

As far as I know, theres no built in way to do that sort of thing in the way that the Particles2D node currently works.

:bust_in_silhouette: Reply From: estebanmolca

There are several parameters to play, but the ones that define this behavior are:
Direction: Set the direction of the particles. In this negative case for the particles to rise
Velocity: The speed or force with which they rise.
Gravity: so that the particles go down.
As far as I know, the particles still don’t have a collision system, but they can control the lifetime parameter to specify how long it takes for the particle to die.

Thanks. The effect looks much better now.

Frenggie | 2020-05-30 16:35