Game Development Community

change the position point for an object

by josh Nelson · in Torque Game Builder · 02/08/2011 (1:47 pm) · 1 replies

this is kind of a noob question. when you 'getposition' of an object, it finds the position of the upper left corner of that objects box. is there a way to change it so that it gets the position of the center of the box instead of the upper left corner?

any help is appreciated thank you.

#1
02/09/2011 (1:02 am)
For me it has always returned the center position of the object. I use %object.getPositionX() and %object.getPositionY(). I think GUI-objects use the upper left corner as placement though.