- Home /
Collision Causing Lag?
I have a game in which zombies chase the player and destroy it by touching the character.And destroy zombies by shooting them. Anyway every thing works but when the zombies get close to eachother they collide causing terrible lag. I know this because I took the colliders off no lag what so ever.
How can I fix this without getting rid of my Colliders(as they are needed for the game to function)!?
Thanks!
Capsule colliders shouldn't cause mush problems. You could add this information to your question to clarify your setup. $$anonymous$$aybe show us some of your collision code and give us at least an approximate number of the zombies in the scene.
Answer by kennypu · Jan 29, 2011 at 12:44 AM
is it just the colliders? or are you having a script run when it collides. also if you're using a mesh collider, either use a low poly mesh, or use a box collider, etc. if you don't need accurate collision.
When object tagged Bullet hits zombie collider it gets deleted. When zombies hit player collider then destroys player. I'm using a capsule collider for all gameobjetcs.
Your answer
Follow this Question
Related Questions
Javascript error.. insert semicolon?? 2 Answers
Game crashes after splash screen 2 Answers
Problems Importing Scene 1 Answer
how to morph character on collision enter with gameobject 1 Answer
Game crashes after build. 2 Answers