SpriteKit iPhone/iPad different resolution, need same physics

删除回忆录丶 提交于 2019-11-30 18:24:13

You can configure the SKPhysicsWorld object attached to the SKScene.
It changes:

  • The gravity property that applies an acceleration to volume-based bodies in the simulation.
  • The speed property determines the rate at which the simulation runs.

You can set those properties to values that seems good to you on an iPad. Changing the Physic World changes physics for all SKObjects.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!