Unity2D when player inside of particle system [help]

28 Views Asked by At

I want to trigger an event if the player is in Particle Effect Smoke particle effect So in this case, I have a smoke bomb that can collide with the Ground layer, when I try to collide the particle with the player and use this OnParticleCollision(GameObject obj) thing, but the player is pushing the particles and I don't want that. I only want this when the player touches the particle but does not push it

What i tried = OnParticleCollision() OnTriggerEnter2D() OnTriggerStay2D() Raycast2D

1

There are 1 best solutions below

2
Cynastic On BEST ANSWER

It seems like what you are looking for is the Triggers Module in the particle system. You can also set the Layers that the particles collide with to disable collision with the player.