Game Development Community

Do images have a rotation pivot-point?

by Noby Nobriga · in Torque Game Builder · 04/22/2006 (9:24 pm) · 2 replies

I have a sprite that I want to use with rotateTo(); however, I don't want it to rotate around its center-point. I want the pivot-point of the sprite to be offset.

Is this possible?

I want to avoid a kludge like creating another "invisible" sprite, mount the "rotating" sprite to that one, then perform actual rotation functions on the "invisible" sprite.

#1
04/23/2006 (12:43 am)
You have two options: the kludge you mention, or oversizing the sprite so that the pivot point is at the center. Having the pivot point at the center evidently makes the physics calculations much cleaner and simpler.
#2
04/23/2006 (1:31 am)
I went ahead and implemented using a larger sprite. Thanks.