Alright I got some terrain collision detection routines working.
Currently I am able to generate a sliding plane, ie. the plane which would slide the unit along a wall for example, or up the slant of a hill.

I was wondering if there is anyway I can use that plane to determine what angle the plane is at so I can rotate certain objects to that angle.