- Home /
Character Collision isGrounded and Walls
Hello everybody. I am developing a 2D platforming fighting game kind of like Smash Bros. My problem here is that I want a better isGrounded collision detection system in my game. Right now the game detects if the player is colliding with objects tagged as ground, but if you hit it from the side, you freeze and are able to jump infinitely on the side of the ground platform, thinking that you are grounded. What I am looking for is some kind of collision detection that only detects part of the character and then would send a message to the computer to tell it that it is touching the ground or the wall. I have tried making an empty gameObject with a collider attached and I made it a child to the character, but with that the empty gameObject receives physics and won't let the player pass through objects because its bumping into them. Is there any way to detect if a gameObject is touching something without it not letting you pass through other gameObjects with colliders on it? I have looked everywhere but I have had zero success. Thank you for your time.