Alright, you have all heard this a million and a half times, but I'm trying to do camera movement that will be locked onto the character moving horizontally only. So basically I need the camara to do this:
Camera.Pos(heroPosX,heroPosY,-100);
camera.LookAt(heroPosX, HeroPosY, heroPosZ);
--------------------------------------------------------
This SHOULD create a side scrolling 3d game if it works correctly. i've tried to add the animatedSceneNode of the character i've been moving to the camera's parent property, but the camera does NOT like to be updated beyond that point. it will move the position of the camera, but not the lookAt position. I cannot add it to the main game loop because it freaks out. Is there a way to update the camera's Position and its Look At position in the game loop? Or does anyone know where I can start looking for this?
my problem with the camera->setTarget() is that I cannot find WHERE my camera is. Its set up in the ISceneManager->AddCameraSceneNode(). I can't get to the setTarget() function . Am I missing Something?