Rotation
Posted: Tue Jul 27, 2021 11:02 pm
I am trying to figure out how to programmaticly get my model to rotate around the center of the model instead of around the global axis. For example when I use the mouse to drag the model around it spins along the center of the model, however using IView_DG.Rotate() or IFrame_DG.Rotate3() as in the rotation sample it rotates around the global axis instead of the center of the model. Reading the docs I feel like it has something to do with the ViewingVolume, but I can't work out how to use it to get the the behavior I want.
Alternatively, if there is a way to change the global origin to the center of the model that would work for me too.
Alternatively, if there is a way to change the global origin to the center of the model that would work for me too.