Original Post
My math skills suck pretty bad. All I''m trying to do is rotate my Eye point around an object. I''m trying to do this by converting Positions->Angle->ModifiedAngle->Positions. Here is my code:
FLOAT Angle = atan2f(Shape[0].Pos.x - CEye.x,Shape[0].Pos.z - CEye.z);
if(KEYDOWN(DIK_A))
{
Angle += FrameDelay * 0.01f;
}
else if(KEYDOWN(DIK_D))
{
Angle -= FrameDelay * 0.01f;
}
CEye.x = Shape[0].Pos.x + (cosf(Angle) * 150.0f);
CEye.z = Shape[0].Pos.z + (sinf(Angle) * 150.0f);
Shape[0].Pos is the object''s vector. CEye is the cemera position vector. Can anyone show me what I''m doing wrong?