Page 1 of 1

Set the Rotation Point

Posted: Tue Feb 02, 2021 1:32 am
by VidEZ
Hi,
I am trying to make something like light rays. I created a bunch of very very narrow, kind of long triangles as the rays. I want the rays to start or have an origin from the top of the screen.
However.....when I rotate the rays, or kind of fan them out, using the Z axis, they rotate about the center of the triangle (shape).....

Is there a way to rotate about a certain point in a shape (here, a very narrow and long triangle?

Thanks,
VidEZ



Re: Set the Rotation Point

Posted: Tue Feb 02, 2021 11:17 am
by Sadler
Imagine where you want the point of rotation to be then move that position to the centre of the screen. Then apply your rotation and move the element to wherever you need it. There is an order of operations when dealing with transforms.

Re: Set the Rotation Point

Posted: Tue Feb 02, 2021 3:28 pm
by Magic
There are many examples of this in the sample projects.