Original Post
Hi,
Say I have an object that is centered on the screen and at z = 5.0, and I have my camera at the origin facing the object. When I run the program everything is cool, the object is centered perfectly on the screen. When I apply a rotation to the object, using the matrix created by D3DXMatrixRotationY and some small angle, the object ends up completely somewhere else. I don''t know where exactly because its off the screen. Eventually the object rotates back into view, but my question is, why doesn''t the object start rotating from where it is originally? This makes no sense to me =\ Its like applying a small rotation to the object warps it to some other place for no reason at all. My code is fine, is there some misunderstanding I have here?
Thanks,
Tom