How to code an object rotate about its own axis?


#1

How to code an object rotate about its own axis?
The rotational axis by default is outside the object. Can the axis be shifted?


#2

Hi @ha_sir.
Please use the turn around origin block.
turn%20around%20origin

Origin (0,0,0) local shifts the rotation axis to the object center


#3

Thanks for your reply.
I have tried this one but cannot produces the desired effect.
In the screenshot, I want the star to revolve about its own central axis, but does not work.21%20AM


#4

Here is the setting of the turn function.
54%20AM


#5

Here is what actually happens. The star revolve about an axis outside the itself. Can the rotational axis be set and aligned with the centre of the star? I have tried various values of x, y, z of origin, but still cannot figure out a way to do so.


#6

Hello, could you please share with us your scene?


#7

Thanks, here it is:


#8

Hello Ha_sir,

thank you for sharing your scene. We found some wrong behaviour of “turn” block and we will fix it as soon as possible.


#9

You have a professional team!