Game Development Community

Pivot point

by S. Arul Prakash · in Torque Game Builder · 10/01/2008 (5:51 am) · 8 replies

Hi,

I want to rotate an animated object with respect to pivot point. Plz tell me How to set an object's pivot point and how to rotate objects with respect to the pivot point?

#1
10/01/2008 (6:33 am)
As i remember the pivot point is always the center of the object, it can not be changed.
#2
04/14/2009 (11:31 am)
Well then what is the point in having the ability to make link points and the ability to move the Sort point of an object? If you can't set up link points that WILL mount to another link point on a separate object and then move accordingly. This is bothersome.
#3
04/14/2009 (11:33 am)
If you could mount one object, using a custom link point, to another object, using the same, you would be able to make a very simple ragdoll effect through this. unfortunatly placing custom link points is somewhat pointless.
#4
05/29/2009 (9:29 pm)
Hi there, is this true? it is not possible to move the pivot point? In my case I would like to rotate a image by script changing the rotation point constantly, according to user input. I searched but all answers are in private forum.
Thanks
#5
06/03/2009 (4:46 pm)
Hi. Any response to not being able to change an object's pivot? I would also like to know, thanks.
#6
11/18/2009 (4:42 pm)
Yes, this is something I think everyone wants to know. There really should be some sort of way to get an object to rotate around a pivot. Others I know have suggested to increase the image size so that the actually center is your pivot point but your image (the one you want rotating around a pivot) will be for example, in the top left corner.

Doing it that way seems like a big time waster in that you constantly have to adjust the image size to get the distance from your "pivot point" the way you want it. Also increasing the file size of the image isn't going to help =(

Anyway if anyone wants more clarity on the increasing image size work around, let me know.
#7
11/21/2009 (3:20 am)
One possibility is to use SceneObjects. If, for instance, you have a triangle shape and you want to rotate it about the top you could specify a link point on the SceneObject that's offset from the center. Since all objects will point at the center you can then mount the triangle shape to this offset of the SceneObject then rotate the SceneObject itself.

btw, sort points were mentioned above. It's my understanding that these points are used to determine when one object should overlap another. If you move a sort point and you're sorting by the Y axis, for example, it will determine how soon one object is drawn over another. One use of this might be to determine how much of a character appeared while walking behind a wall.
#8
11/23/2009 (6:07 pm)
Ah yes, good suggestion Aaron. I figured this out a little while after posting haha. But ya you are right on the money. If anyone else is still having a problem just do exactly what Aaron suggests but beware! Make sure you dont tell the center object to auto rotate. I had an issue in the editor when I tried mounting an ojbect to another objects rotating sort point then realized I wanted to dismount it...oh the pain haha.