Check out the Kingdom Hearts movement tutorial, it may not be the most 'realistic' gravity you're looking for but it does have a solution for sinking into the ground/bobbing.