I am creating space game which has an effect similar to black hole's gravitational effect. Wherever the spaceship is going, the black hole will attract it, summing up all the vectors together.
I know SKFieldNode has a method customFieldWithEvaluationBlock: that allows to calculate everything myself, but might it be another way to do that?
I have tried almost every type in SKFieldNode, but nothing helped.
- There are some side effects that don't suit me (i.e. If I use an electric or magnetic field, the object repels from the black hole)
- Moreover, moving with SKAction (i.e. for the spaceship) doesn't allow me to sum all movement vectors together (I cant do
- (void)moveTo:duration:
actions simultaneously, even with grouping the actions)
What can you advice me? !