   camera issues in our game
  Just a little background about our camera...we're using Hooke's law for spring physics to keep the camera attached to the player.  It looks GREAT!  BUT. . .If our camera is close to the wall and our player is close to the wall, the camera clips through part of the wall and you can see outside of our level.We've tried setting the collision volume of the camera to be a little bit bigger so that it can't get close enough to a wall, but our level is in close quarters, so this stops us from going through hallways and if the camera ends up in a corner is starts bouncing back and forth really bad.I can post code if you'd like to see it, but that's not really necessary.  I just need some theory behind this.Thanks for the help.   
  I'm assuming you have some kind of collision geometry for your level that prevents the player from walking through the outer walls. In this case, simply cast a ray from the player position to the camera position. If this ray intersects collision geometry, clip the camera to the intersection point instead of the original location.That should take care of the vast majority of cases, without compromising too much of your attachment system's effect.   