Implementing a Floor

What is a common way of implementing a floor? i.e. keeping the characters feet on the ground. This entails if the floor slants so will the character.

You could use a line-poly intersection test to find the point of collision. To slant the character just use the collided poly’s normal vector as the character’s up vector.