Hello! I’m nearly finishing my game, but there’s still something i want to know how to do best.
My character detects the collision with enemies using OnCollisionEnter, and then I call a function that will make the hit animation and etc.
The problem is, if I stay inside the enemy collider, it wont detect the Collision Again, because its still colliding, it havent “entered” again since the first time, I can understand this.
One may say that i should use OnCollisionStay with some boolean tweaks, so it can detect the collision every time. The problem is, that using OnCollisionStay may affect the performance…
I simply want to force OnCollisionEnter again, is there a way to achieve this?
Maybe if I could remove my characters from every collision someway, and then, after sometime, detect the collisions again… is there a way?
Thanks!