Game Development Community

Pivot point for scene objects

by Spider · in Torque Game Builder · 12/21/2005 (12:05 pm) · 5 replies

Seems like there's no way to set the pivot point for a sprite in T2D. That would be awful nice to be able to do.

I don't know if this has been suggested before... it seems like a pretty obvious one.

#1
12/21/2005 (5:08 pm)
It has been suggested and it's "by design" that this doesn't exist. The short answer is that the pivot point needs to be the center of the object in order to keep the physics code reasonable. There is a trivial work-around. Make your sprite large than you need such that the center point is the pivot point you'd like. Fill the excess with transparent pixels.
#2
12/21/2005 (5:25 pm)
I see.

I think that workaround could be simulated/automated in the engine with the same results and a really nice, easy to use feature. The advantages of this approach would be:
1) No artificially large bitmap resources
2) Makes T2D feel even more full featured (I'm not knocking it. You know I love it)
#3
12/21/2005 (8:53 pm)
I would like to second this feature request. The ability to adjust a sprite's pivot position to any arbitrary point would be very welcome indeed.
#4
12/22/2005 (12:38 am)
I concur fully on this suggestion.
#5
12/22/2005 (3:07 am)
Just to let you know that this one has been in the issue database ("Add arbitrary pivot-point capability" #699) for a little while now and I'll try to get around to it sooner rather than later.

Definately a must have.

- Melv.