# sm.physics.getGravity

Returns the gravitational acceleration affecting [shapes](../Game-Script-Environment/Userdata/Shape.md) and [bodies](../Game-Script-Environment/Userdata/Body.md).

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
sm.physics.getGravity(  )
```

[Open the full Game reference](../Game-Script-Environment/Static-Functions/sm.physics.md#getgravity)

**Availability:** Server only

**Returns:**

| Type | Description |
| --- | --- |
| number | The gravitational value. |
