Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

OnParticleCollision 2d?

Discussion in 'Scripting' started by Rutenis, Jul 2, 2014.

  1. Rutenis

    Rutenis

    Joined:
    Aug 7, 2013
    Posts:
    297
    Hey, so im having this problem, i cant say in script when i collided with a particle because im working in 2d. Any ideas how i could do it?

    -Thanks!:)

    Fix: i added a 3d cube, and when it collided with an particle i said the other script to change some values. Thanks anyways.
     
    Last edited: Jul 2, 2014
  2. StarManta

    StarManta

    Joined:
    Oct 23, 2006
    Posts:
    8,738
    Since particles don't interact with the 2D physics system, I think your only option here might be to add an extra 3D physics trigger collider solely for the particles to interact with.
     
  3. Rutenis

    Rutenis

    Joined:
    Aug 7, 2013
    Posts:
    297
    Yeah, sorry. I figured it out, i added a 3d cube, and when it collided with an particle i said the other script to change some values. Thanks anyways. :)