Hi i’m looking into the best way to center a model (of any size).
I have a chess board that has it’s top left edge at the locale origin and want to have its center at the origin so the camera i have centered at 0,0,0 will rotate around properly.
I will probably be allowing users to load models of different dimensions into the game (themes etc.) and im wondering whats the best way to approach this.
I have messed around with getting its bounding sphere and radius and translating it using these values, also tried transposing the Locale’s origin to the center of the board but that did’nt work (not sure was i doing it right, but it did move just made no difference to the rotation point of the board), also tried moving the cameras origin to the center of the board btu the camera started acting funnny.
Any help woud be great.