Have Objects in circle animation

Hello,
how can I make these objects turn in a circle motion? Ideally that they always face the camera, is there a way?

Is there a way?

Hey @DanielRuczko! You sure can!

On the cart blueprint, you want to use a “LookAt” node and a “Set Actor Rotation” node, and use them on tick.

LookAt target needs to be “GetPlayerPawn → GetActorLocation”,
LookAt Start needs to be “Self → GetActorLocation”.

Break the output (right click, break pin) on the LookAtRotation node and the SetActorRotation node. Only use the Z values from the LookAtRotation, and use “GetActorRotation” on Self, break that, and use the X and Y from that so your carts don’t “tip over”. :slight_smile:

Hope that helps! Let us know if there’s anything additional we can show you!

To make them also rotate in a circle the easiest way is to create a blueprint with a rotator component and add the other blueprints (with the look at described above) as child actors.

In theory, you then attach the objects to the rotator component and it gets things to rotate around in the way you define via the rotator component options.

Do you happen to have a tutorial for that or something? Cant really find anything on youtube

You can use this pretty simply- you shouldn’t need a tutorial for the part I was suggesting. This will make the carts turn towards the player, but they won’t move and they won’t “Tip over”.

Hope that helps!

@Mind-Brain any chance you could help me with this project? Maybe remote somehow or if I send you the project? I know thats a lot to ask but I’d really appreciate it, I need to finish this by tomorrow night

Sorry for the late reply @DanielRuczko, was gone for the weekend.

Regardless, remoting in or going through a project is something I don’t really do, I don’t have time like that, so I wouldn’t have been able to anyways. :frowning:

I assume the answer I gave helped you out?

If you’re in school or something with deadlines, I highly suggest you group up with your classmates to provide support to each other and learn together, as you’ll all have similar deadlines! Give a hand, get a hand. I know that helped me out quite a bit!