Page 1 of 1

Change an object pivot for rotation?

PostPosted: Wed 15 Feb 2017, 06:04
by mackoyyu
I know that GDevelop's rotation is always by default on the center and the direction is always right to be forward. Is there anyway to place the pivot of an object, like the butt of the short width of a long rectangle?

Re: Change an object pivot for rotation?

PostPosted: Wed 15 Feb 2017, 09:19
by kalel
It seems that gdevelop uses the centre point for rotation. This gives you an easy way to offset the axis without using manual positioning and math.

Just move the point wherever you wish, and when you change angle with Angle function, it should be around this new centre point.

Image

Re: Change an object pivot for rotation?

PostPosted: Wed 15 Feb 2017, 14:46
by mackoyyu
Thank you for this info.

Re: Change an object pivot for rotation?

PostPosted: Wed 15 Feb 2017, 14:54
by kalel
mackoyyu wrote:Thank you for this info.


Welcome. :)