# GetAxisGravity

*float* **GetAxisGravity**(*string* **description**)\
\&#xNAN;*float* **GetAxisGravity**(*int* **descriptionHash**)

## Parameters

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

## Returns

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

## Description

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

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

## Example


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://cmonkeys.gitbook.io/cinput-reference-manual/script-reference/methods/getaxisgravity.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
