Rotating objects around object

Hello,

what is the most easiest way to rotate some actor around another actor?

For example rotate ball around another ball in fixed distance.

Hi! You can add RotationComponent to one Actor and set PivotPoint and rotation Axis values based on another Actor location.

I posted an example of this the other day in C++. See: https://answers.unrealengine.com/questions/795350/how-to-rotate-a-static-mesh-component-around-point.html

If you’re able to read the CPP then you should be able to convert it to blueprints. If not then I found this tutorial on YouTube: UE4 - Rotate Actor Around Point Tutorial - YouTube (not watched it all the way through so I can’t vouch for quality, but it seems to get the job done).

Thank you, so is possible to make some function in BP, that input will be some number (int) and that function will spawn x (input number) balls evenly? For example if input number will be 5 then it will spawn 5 balls around actor and angle between balls will be 72 degrees (because 360/5, 5 is input number)… if number will be 3 then it will spawn 3 balls evenly, so degree between balls will be 120 degrees (because 360/3=120)… I hope you understand :slight_smile:

1 Like