This is the code for setting up the camera:
void Initialize( Object@ object)
{
LoadControllerSettings( object);
// set the initial camera position relative to the object
Matrix mtx;
mtx.SetRotate( headingAngle, 0, 0);
headingAngle = 0;
Vector camDir = mtx.ZAxis;
camDir *= cos( pitchAngle);
camDir.y = sin( pitchAngle);
cameraPos = object.GetCurMatrix().T;
cameraPos += (cameraPos * zoom);
cameraPos.y += 100;
}
The red area is what I added but nothing happens, no matter if I add 1 or 100. I feel stupid
