Original Post
hello, ok, i have a quite difficult problem here.... :-) the character can walk on a tile-based terrain (regular grid). there is a camera behind the character at a fixed distance, which always follows the character. now each of these tiles may be passable or not-passable. now as the character moves around, the static line between the cameraposition and the characterposition may collide with some of these not-passable tiles. when this happens, this camera axis should start to rotate, so that the there is no intersection between this line and any of the not-passable tiles. imagine dragging a pencil through a regular grid, with obstacles on some grid cells. now i am looking for an idea on how to implement that. i hope i could explain the problem sufficient, if not please tell me. thanks a lot in advance!