I want to follow a object in negative Y-axis. Here is my look-at function:
gluLookAt(0,Y,0, 0,0,0, 0,0,1);
I am increasing the value by pressing pageUp key which is also increasing the translating value of my object in negative Y-axis. Y's initial value was 100. Until Y=0 it works fine to follow the object but when it become negative the camera is now looking towards the positive Y-axis. But I want to follow or look at in the negative axis.