Hi can somebody tell me how i can use variables so that when the camera is at a certain distance from the object it will turn to face the camera.
Im new to c++ but was thinking that i could do something like
int main
{
int camera, object,distance;
camera = //something to find position of camera
object = //something to find position of object
camera*object/2= distance
if ( 200<distance);
{
//commands
}
}
But as i said im new to this so HELP is appreciated. Emphasis on HELP
"Lifes like a box of chocolates, you never know which one you get" Forest Gump
Unless you read the leaflet, thats why hes so "different"