What you need to do is a trace down, then two more traces forward infront of the character and backward, and then set the player to the average between them.