© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2y ago
Ratthew

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.
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

problems with colliders in unity
C#CC# / help
2y ago
❔ Problems with colliders...
C#CC# / help
4y ago
Need Unity audio help.
C#CC# / help
2y ago
✅ Need help with C# unity game development.
C#CC# / help
4y ago