attaching an actor to follow the main actor with cos and sin

Dose anyone knows how to make one actor to be attached /connected to my main actor border (not to its center) and to rotate together with the main actor as well.
so lets say that my main actor is a plant erath and i want that the moon actor will follow earth and also will rotate the same as it around it. i know its something with cos and sin that keeps the secondary actor to the point i what relative to the main actor and in the distance from it but whats the rest??
Thanks
so lets say that my main actor is a plant erath and i want that the moon actor will follow earth and also will rotate the same as it around it. i know its something with cos and sin that keeps the secondary actor to the point i what relative to the main actor and in the distance from it but whats the rest??
Thanks
Comments
Main actor y + sin(same as above
If you want it to rotate around, you could have a timer that changes desired angle to desired angle+1 every how ever many seconds you want
Try it out
so i want that the secondary actor will rotate as the main actor but with a slower speed so it will finish it rotation later
Constrain the main actors rotation to a game attribute
Mainactorrotation
In the second actor, have a self attribute
Desiredangle
Use the desiredrotation In the sin/cos rules.
Add another rule inside the second actor that
When desiredangle does not equal mainactorrotation
Timer every whatever seconds
Change attribute desired angle to desired angle+1
Something along those lines should work
you might have to use floor on some stuff to take into account the decimals of the angle.
Is that what you are asking for?