1 Attachment(s)

still workin on this last problem...

So I am still working on this last rotation problem. I have tried various glTranslatef() calls, and cant figure out how to get it to rotate around the pivot point of this mesh.

Here is some data about the mesh:

X:

min: -0.5

max: 0.5

size: 1

center: 0

Y:

min: -0.9

max: -0.299

size: 0.6

center -0.599

Z:

min: 1.75

max: 3.5

size: 1.75

center: 2.625

A picture is attached at the bottom showing the point i want to pivot the mesh on.

I have tried doing glTranslatef's to the various min, max, and center points on the mesh to see if I could get it to work properly, but it wont work.

It keeps making a big huge circle as it rotates instead of rotating around that one point I want to rotate on.