Reputation: 548
As I am porting an iPhone app that uses SpriteKit to iPad, I have been able to scale all the screen elements and font sizes using the height ratio of the iPhone 5 to iPad screen.
Everything looks proportional, except for the physics since there is more area.
So the question is, how do I scale the physics along with the screen using that height ratio?
Perhaps changing density or mass of all the nodes? How would I do it, mathematically using the ratio so that it is perfect?
Upvotes: 10
Views: 615
Reputation: 430
You can configure the SKPhysicsWorld
object attached to the SKScene
.
It changes:
You can set those properties to values that seems good to you on an iPad. Changing the Physic World changes physics for all SKObjects
.
Upvotes: 3