mvarCameraLocation = MakeVec3(40, 40, 0)
mvarAngle = 45
mvarDistance = 4
mvarCameraTo.X = mvarCameraLocation.X - ((UnitCircle(mvarAngle).X) * mvarDistance)
mvarCameraTo.Y = mvarCameraLocation.Y - ((UnitCircle(mvarAngle).Y) * mvarDistance)
And i draw Y=Y, X=X and not Y=Z.
Does anyone have a clue?
D3DXMatrixLookAtLH - I Will go nuts!
Hi!
I having som serius problems D3DMatrixLookAtLH...
I just can''t set the view correctly, i have been trying to get the view correctly for 12 hours.
All i want is to get the "map" in the center (rotated 45 degrees), and the view should be top-down...
I''m not sure as I am a newbie DX programmer, but I think maybe the problem is that you are using angle measurements in degrees. Try and use radians instead it should work I guess.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement