   Matrix Orbit Rotation
  For you guys who replied to my threads to help me with my Camera code ... I say thanks!My lecturer helped my out with my Matrix rotations and works exactly the way I wanted it!Now all I still want to add is Rotation code that makes my Camera orbit around an object.Could some of you guys show me where I can get the equasions, or at least help me?Thanks   // Last Attacker   \\---=( LA   )=---// LA Extreme   \\ICQ Number :   120585863E-mail:   laextr@icqmail.com 
  there are a few ways, a simple one that usually works well enough:place the camera at the position of the object, rotate the way you like, translate back.ie://rotate (for an orbiting cam 2 angles are usually fine, but if you just add up rotations to the matrix you dont it anyway)Camera.Positin=Object.Position - distance*Camera.Forwardor:mat[12]=obj.x-distance*mat[8];mat[13]=obj.y-distance*mat[9];mat[14]=obj.z-distance*mat[10];with those lines, no matter what kind of weird thing you do to your camera, it will always look at the object. if youre using glulookat that shouldnt have been the problem though. ;  Thanks Trienco!!!I''ll check it out later when I get home. // Last Attacker   \\---=( LA   )=---// LA Extreme   \\ICQ Number :   120585863E-mail:   laextr@icqmail.com 