View Full Version : center xyz in glulookat

09-21-2000, 09:15 PM
can i use glmultmatrix with center xyz coordinates somehow ? the purpose is to do rotation in centerxyz coords,but onlý centerxyz coords.what would be the best solution for my problem ?

09-24-2000, 12:18 AM
I don't really know what your problem is, but if you want to rotate a point in R3 around another point in R3 (not (0,0,0)), you must:

- substract center point from point which needs to be rotated

- rotate point around the origin

- add the center point to the point that has just been rotated around the origin.

Hoped that helped