Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

2D shuriken particle collision

Discussion in '2D' started by HotMetalGames, Jan 25, 2015.

  1. HotMetalGames

    HotMetalGames

    Joined:
    Nov 29, 2014
    Posts:
    5
    Is there any way to trigger an event when a 2D sprite game object collides with a particle using a shuriken particle system? I just want to check if a particle passes through the x,y space of the sprite, and I don't care about z-position and I don't care about any physics of the particle beyond a simple yes it collided or no it didn't. I want to assess hit point damage when the particles hit the sprite, and that is all!

    I'm planning to try something like adding an invisible 3d object that "shadows" my sprite's x,y and exists at the z level of the particles, and just hack it with a 3d collision, but I'm hoping for a more elegant solution.

    Thanks for any help or direction!
     
    Last edited: Jan 25, 2015
  2. TwiiK

    TwiiK

    Joined:
    Oct 23, 2007
    Posts:
    1,729