I've got a small game, where the user uses Horizontal axis to move the camera along Z.
However, it's currently possible to have the camera looking in empty space, far from terrain. It's position doesn't have min Z and max Z. I could of course hardcode the min/max value, but I'm wondering if it could be done more nicely.
asked Oct 03, 2010 at 01:03 PM
You can put two collision planes that act only on the camera or put the min/max Z values editable in the camera script, it's easy, just declare them as variable at the beginning of the script so you can edit them in each scene :)
answered Oct 03, 2010 at 02:43 PM