2D Physics + Particle Systems Collision

Hi,

Is it possible to get particles from a Particle System to collide and react to collisions with 2D colliders?

Turning on World Collision with a particle system seems to allow it to collide with regular 3D colliders, but it doesn’t seem to work with any of the 2D colliders. Is it intentional, or is there another setting for particle systems to enable 2D collision?

Thanks for any help you can provide.

Hi there!

This is not currently supported but planned for a future release. Sorry! For now you’d need to use a bunch of existing primitive collider2D sprites.

Will

Hi Will,

No problem, that’s fine. Just checking in case we were missing something obvious in the settings.

Cheers

Hey guys,
Any update on this issue ? Is it possible now to detect particle collisions on a 2D collider ?

Thanks Regards,
RazorSRam.

Any update for particles 2d collision?

Any update on this? Is it possible to detect particle collision in with 2d colliders? If not, is there any eta on when this functionality will be available?

Would love to hear an update on this, working around Shuriken for a custom particle solution creates a horrible workflow. For all of us 2D users, this would make our lives 1,000,000x simpler.

Really want to hear this is coming for Unity 5, would be kinda sad if it isn’t (as I’m guessing its super simple to add a 2D collider option or a quick fix of some sort).

Any updates on this issue?

The idea is that this will go into the 5.x product cycle. That’s all I know for now.

Would be great if it’ll come out soon!

Meanwhile, are there any workarounds (other than changing all existing other things to 3D colliders or stop using the particle system)?

Yes there is a workaround, you can process collisions manually using ParticleSystem.GetParticles and SetParticles to access the particles, doing a Physics2D.Raycast for each particle, then finally adjusting each particle’s velocity if the raycast reports a desired hit. It works great, and doesn’t perform badly at all.

You could also just add a 3d collider on top of the 2d collider for all the characters/items that need to interact with the particles. If you don’t have any other 3d colliders in the game except the particles, this will work just fine. That’s how I did it in my game.

Bear Boom
iOS: https://itunes.apple.com/us/app/id985992564?mt=8
Android: https://play.google.com/store/apps/details?id=com.Airbear.Airbear

I have a working prototype of shuriken + box 2D. Hopefully to release it very soon!

2 Likes

any chance we could beta test it?

Yes for sure! Coming out in the next alpha release, hopefully in a couple of weeks time!

1 Like

Watching this thread.

This is exactly what I need. Will you have a youtube video on how to use it also?

Cannot wait.

Paul, from one Paul to another, thank you for doing this!

It would make a huge difference to my game’s look & feel with colliding particles.

I will make on but it is dead simple. WHen the feature is out, you will have to go to the “Collision” module of shuriken, select “World” and choose between 2D and 3D. That’s it!

Some feedback if “Both” are needed would be great!

Sure, i’d definitely use the 2d+3d particle collisions option, it would be a must, as there are many 2d/3d mixed games, including my projects.

I am eagerly anticipating/waiting this feature. Using 3d colliders now and not liking the results I am getting