Reputation: 221
What are the units for the velocity of a physics body in SpriteKit?
In my app I have a gravity of (0,-5)
, however, when I print the velocity.dy
of a downward moving sprite it jumps to -750 very quickly (the sprite has only moved halfway down iPhone 5s screen). What unit is this measured in? Also the gravity of (0,-5)
means -5m/s^2 right?
Upvotes: 3
Views: 917
Reputation: 3076
Sprite Kit uses the International System of Units, also known as SI
So it's probably m/s (meters per second)
Upvotes: 0