Hello,
I am having trouble with my grounded check for the character controller. I will need to have moving platforms in the game, including moving ramps. However, the player will be parented to the same object the ramp is parented to. So locally, they're not moving relative to each other.
If the ramp is moving towards the player that's on it, the player will slide down the ramp because the grounded check is not returning true, when it should. As a reminder, the player and ramp are both parented. So, locally speaking, the player is just standing on the ramp.
I'm checking grounded with a spherecast. The spherecast starts towards the top of the player and moves down to slightly below the player. This works great when the objects are not moving, but when the ramp is moving, apparently it's not detecing it. I've included this picture to show the direction of movement that causes problems, the start of the spherecast (blue) and the end of the spherecast (red).