For example how can I check weather or not my player is touching certain pieces of wall or ground?
Maybe this: http://unity3d.com/support/documentation/ScriptReference/Collider.OnCollisionStay.html