Making an object orbit a fixed point in directx?
问题 I am trying to make a very simple object rotate around a fixed point in 3dspace. Basically my object is created from a single D3DXVECTOR3, which indicates the current position of the object, relative to a single constant point. Lets just say 0,0,0. I already calculate my angle based on the current in game time of the day. But how can i apply that angle to the position, so it will rotate? :(? Sorry im pretty new to Directx. 回答1: So are you trying to plot the sun or the moon? If so then one