- Home /
 
 
               Question by 
               wouter_vandenputte · Jun 04, 2018 at 08:30 PM · 
                particlesparticlesystemparticle collision  
              
 
              How to detect on particle collision stay?
I want my character to be able to run through fire but it should hurt him, right now I subtract health with
 void OnParticleCollision(GameObject other)
 {
     if (other.tag == "Fire")
         DeductHealth(.05f);
 }
 
               But that only works when it enters the a fire particle, I want to deduct health as long as he isn't out of it.
               Comment
              
 
               
              Your answer
 
             Follow this Question
Related Questions
Let Particles sit on Collider without triggering callback - OnParticleCollisionEnter? . 1 Answer
Getting particles from the same system to act differently with different objects? 0 Answers
How to keep particles moving past an obstacle after they have collided with it? 3 Answers
Particle collision problem 0 Answers