NeckCracker

03-23-2000, 05:50 AM

HI

As good as I know glRotate rotates an object about the origin, so do somebody know how to rotate an object about one of its point(not the origin).

I know one solution:

I move the object so that this point gets to the origin. Then I rotate the object then put it back to its real place.

I don't want to write my own rotate function, so is there a way to do this with OpenGl functions?

Thanks in advance

NeckCracker

As good as I know glRotate rotates an object about the origin, so do somebody know how to rotate an object about one of its point(not the origin).

I know one solution:

I move the object so that this point gets to the origin. Then I rotate the object then put it back to its real place.

I don't want to write my own rotate function, so is there a way to do this with OpenGl functions?

Thanks in advance

NeckCracker