I’m trying to give my body an elliptic orbit, and I’m trying to figure out which would be the best approach (I want some reusable function or method since I’m using this in different levels).
I tried to create a function but it didn’t work that well, but I also saw that SpriteKit gives you the opportunity to create some fields.
Would it be easier using fields to give my body this property?
I know I could accomplish this task just by animating my body, but it’s not that much reusable, and I don’t think it will work so good with physics.
What would be the best approach to realize this?