> For the complete documentation index, see [llms.txt](https://cmonkeys.gitbook.io/cinput-reference-manual/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cmonkeys.gitbook.io/cinput-reference-manual/script-reference/methods/getaxisgravity.md).

# GetAxisGravity

*float* **GetAxisGravity**(*string* **description**)\
*float* **GetAxisGravity**(*int* **descriptionHash**)

## Parameters

**description**: The name of the axis, as defined in [`SetAxis()`](/cinput-reference-manual/script-reference/methods/setaxis.md).\
**descriptionHash**: The hashcode of the name of the axis, as defined in [`SetAxis()`](/cinput-reference-manual/script-reference/methods/setaxis.md).

## Returns

**float**: The `gravity` value for the axis.

## Description

Returns the `gravity` value for the axis. You can change this value with [`SetAxisGravity()`](/cinput-reference-manual/script-reference/methods/setaxisgravity.md).

This is provided as a way to present the player with a UI to display and change the `gravity` settings.

## Example
