GetAxisGravity

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

Parameters

description: The name of the axis, as defined in SetAxis().
descriptionHash: The hashcode of the name of the axis, as defined in SetAxis().

Returns

float: The gravity value for the axis.

Description

Returns the gravity value for the axis. You can change this value with SetAxisGravity().

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

Example

// gets the gravity value for a previously define axis float hGravity = cInput.GetAxisGravity("Horizontal Movement");

results matching ""

    No results matching ""