Is there a way to constrain/mask particles?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By sciencetourist
:warning: Old Version Published before Godot 3 was released.

Hello,

my target is to create smoke over an area from a top view perspective in 2D. So i played around with particles.
It would be nice if I could have some borders where particles can’t go trough or disappear.

Here is an example: The smoke should not be visible outside of the building.
enter image description here

Greetings

:bust_in_silhouette: Reply From: timoschwarzer

You can set an emission mask (see the docs) for your particles.
Particle collision isn’t supported yet.

Aren’t emission masks only for particle creation?

sciencetourist | 2017-10-23 19:24

Yes, emission masks control where particles will be emitted. What you need is particle collision/wiping which isn’t supported yet.

timoschwarzer | 2017-10-23 19:28

Thank you. I’ll search another way then, maybe masking it with a second Tilemap would look ok.

sciencetourist | 2017-10-24 08:41