I got this 1st person character in my game, that can crawl underneath cars to work on them from the underside.
The problem is my "headroom" check when getting up,
I´ve used a RayCast that shoots upwards from the middle of the "head" part,
it works fine otherwise but it checks only the middle point of my player character´s position, and its collider causes collisions when getting up that cause glitches.
I change the Y size in Transform of my character collider(a capsule), this causes the car to fly off if hitting it while "getting up".
Is there some better way to check if there is enough space above the player, or a better way to alter the character´s collider size?