user4616250
user4616250

Reputation: 221

Unit of velocity.dy property in SpriteKit?

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

Answers (1)

Choppin Broccoli
Choppin Broccoli

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

Related Questions