---
title: gravity
framework: spritekit
role: symbol
role_heading: Instance Property
path: spritekit/skphysicsworld/gravity
---

# gravity

A vector that specifies the gravitational acceleration applied to physics bodies in the physics world.

## Declaration

```swift
var gravity: CGVector { get set }
```

## Discussion

Discussion The components of this property are measured in meters per second. The default value is (0.0,-9.8), which represent’s Earth’s gravity.

## See Also

### Configuring the Physics World

- [speed](spritekit/skphysicsworld/speed.md)
