I’m working on creating a queen bee boss fight in Unreal Engine 5. One of the boss’s attacks involves spawning small bees that move in a spiral pattern around her. I found a helpful solution from SVasilev in this post, which allowed me to set up the spiral motion for the bee projectiles.
The bee projectiles are child components, and they start spinning in a spiral when they spawn. However, I’m facing an issue where the bees’ speed increases as they move further away from the boss. I want the bees to maintain a constant speed throughout their lifespan.
I’ve tried numerous solutions, including experimenting with various settings and parameters (also I tried using GPT for suggestions, but that didn’t help much). Despite my efforts, I can’t seem to achieve the desired constant speed for the projectiles.
As the radius increases, speed (angular velocity, really) must decrease accordingly.
I tried the method you suggested, but now the bees are moving really slowly and they don’t form a spiral anymore; instead, they move in a straight line. After trying a few times, I gave up (maybe I did something wrong, I don’t know).
You can use the archimedean Spiral to calculate this
Omg you are awesome, thanks for all the examples!
I pasted the logic you made but for some reason it seems that it always starts slow and then moves faster (even when I change the speed).
But what I noticed is that when I used the Add Offset node because I wanted to move the entire actor, you used the Set Relative Location, and using Add Offset seems to increase the speed in both code snippets (I don’t know, maybe it’s just my impression).
What I want to try is using this information I just learned(the Set Relative Location node) to move the component manually outwards while rotating around the actor root - that might work as a workaround. I’ll keep you guys updated.