A way to have objects Orbit around another actor?
I am making a game for a university project and wanted to ask if anyone has a suggestion on how to implement this mechanic.
What the idea basically is, is that the player is a Stone Sentry that collects gems that improve their attacks. These gems are scattered throughout the world, and when the player collects them they begin to orbit around the centre of the player controller; as a visual indication as to what gems the player currently has.
To be more abstract. I am looking for a way to attach an object to a point and have it orbit around it. in an ideal world the gems orbiting the player will be spaced equally apart.
The maximum number of gems may be 8-10, if that helps.
asked Oct 03 '17 at 04:51 PM in Blueprint Scripting
The easiest way is to add a springarm to the parent object and attach the object you want to rotate to the Springarm's business end. Its length is the radius. It's a robust and efficient method.
You end up rotating springarm in place.
Follow this question
Once you sign in you will be able to subscribe for any updates here