# SetAxisGravity

_void_ **SetAxisGravity**(_string_ **axisName**, _float_ **gravity**)\
&#xNAN;_&#x76;oid_ **SetAxisGravity**(_int_ **axisHash**, _float_ **gravity**)

## Parameters

**axisName**: The name of the axis you want to change the gravity value for.\
**axisHash**: The hashcode of the name of the axis you want to change the gravity value for.\
**gravity**: The value to assign as the gravity.

## Description

Sets the gravity for the axis. This will override cInput's global [`gravity`](../variables-and-properties/gravity) value.

This value can also be set during the initial axis creation using [`SetAxis()`](setaxis).

## Example
