Oh my God, not again, pick some books for Christ' sake and use your brain. Camera is ok, but how can a cube has a property like orientation and direction?? You need two vectors to do this. The 1st is the direction of the camera and the 2nd should be something unknown to be and probably to you. Then you use both vectors as arguments to an operation known as dot product or, alternatively, scalar product.