View Full Version : Rotating around a specific point

07-26-2001, 12:40 PM
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...


07-26-2001, 03:32 PM
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.