Hello, first sorry for my English.
I’m creating my first tower defense game. I have prefab of enemy, I’m creating a list of enemy prefabs, but when i spawn them (with Instantiate) they bounce of each other. I do not want that, I want them to penetrate each other without changing direction of move.
To move them I use addForce function. When I checked the IsKinematic i can’t use addForce.
How to solve this problem?
Thanks in advance
I think you have twoways to do that.
The first one is to disable the collider box in your enemy prefab but after you cannot collide with anythings (But for a TD I don’t know if you need that).
Or you can check the “Trigger” CheckBox of your Collider. Like that the collision will have no effect but you can catch these collisions in a script and aplly all effect you want in function of what is the other object. (with OnCollisionEnter function)