- Home /
Multiple EdgeCollider2D lags so much on mobile
I am using Two Edge Collider for one bullet,
One for detecting hit which wastes one life of player, other one for top of bullet which defeats bullet when player jumps top of it, and it covers top of bullet (I bend it like 8 times to cover top of bullet)
But after adding second one (bended one) game lags so much when like 5 of them are (which are continuously clonned) in the action, even I am not touching them game lags so much so that I cannot even send movement to my player.
CPU usage is too much, that I couldnt play it. What the problem might be, it is really that hard on cpu?
I tried to delete that second Edge collider and add a edge collider linearly without any bend, now no lag occurs.
Can anybody elaborate what happened in my situation, and give me any advice because it is so frustating and I wonder processes going at background that causes lags ?
Thank you for helping, have a good day
Your answer
Follow this Question
Related Questions
Tile Generation with collider2D's 1 Answer
How to destroy a gameobject's clone when colliding with the ground? 1 Answer
How to make CircleCast work properly with multi vertex EdgeCollider2D 0 Answers
Unity 2D - Polygon collider and Edge collider doesn't work with player animations 0 Answers
Colliders not placing Proplerly 1 Answer