How to change center of gravity in sprite kit game?

前端 未结 2 2010
隐瞒了意图╮
隐瞒了意图╮ 2021-01-14 08:37

I have been trying to find, but did not succeed. Is there a way to change physicsworld gravity property in such way, that objects would not be attracted towards the bottom o

2条回答
  •  轮回少年
    2021-01-14 08:59

    You are probably looking for a SKFieldNode. There are a couple of different types so you will have to read the docs. The one you are probably looking for is called radialGravityField.

提交回复
热议问题