C
C#4mo ago
Matthew :D

I need help with Unity colliders?

im creating a 2d game the tower is in the middle and Melee enemies spawn from one side and are moving towards the tower, i have boxcolliders2d on both tower and enemy and rigidbodys, but i want enemy to collide with each other so they cannot go trough each other and to collide with the tower damage it and they get pushed back and i tried to do all of that but enemies are still just passing trough the boxcollider both on other enemies and tower they go inside the tower stay there and do no damage, i tried fixing it by asking chatgpt ai, he said that i firstly needed to have on boxcolliders is trigget on then he says off and now that is off still does not function but the MeleeEnemy srcipt is using OnTriggerEnter. I dont know how to make so they collide with reach other and collide with tower, im sorry in advance for my english and for my questions or if im breaking any rules i checked the rules, im just new at this and i need someone to push me in the right direction! Thank you in advance.
0 Replies
No replies yetBe the first to reply to this messageJoin