Rotating around a specific point

I thought an easy method of moving through a world was to rotate it, and it worked great whilst I was standing in the middle of it. I then implemented a simply fowards motion (again shifting the scene backwards [as far as the default camera is concerned] in the Z axis, however I hit a problem, any rotation applied is applied to that object. I was wondering if there was anyway of changing the center of that rotation so that it could always be 0,0,0 creating the complete illusion of moving through a 3d world with 360 degrees of freedom…


Yes there is, just translate before you rotate and remember that you have to do it vice versa in the code because of the matrix multiplication rules. Hope it helped.