I have a simple character right now (2D), that can walk left and right and can jump. Up until this point, I have been using a Collision Event to detect when the player is touching the ground, but this brings in all sorts of issues, so I need to use raycasting, but trying to get raycasting to work also seems to have issues.
I have it so that the raycast, when it hits the ground, so send the player back to the start of the FSM, but whenever the player jumps, the raycast automatically activates and gets locked in the state. Is there any way to only have it so the raycast doesn't hit it early?