- Home /
Make charactercontroller not step over specific objects
Hi, I'm making a fps unity game, where the player can shoot grenades. However my player has a charactercontroller on it and whenever he walks toward a grenade that is on the ground, he steps over it (the OnCollisionEnter of the grenade is not getting called). This is due to the step offset of the charactercontroller I put on 0.4, in order to enable my player to walk up a stair.
What would be the best solution to enable the player to walk up the stair, but not the grenade, without making any changes to the stairs step height or the grenades collider? I have been playing around with the slope limit and step offset but found no way to make my player walk up the stair, but not the grenade. I also thought to add a triggercollider to the Players feet, but I dont like this solution.
Thanks for any answer.
Your answer
