AWorldSettings::GetGravityZ

Returns the Z component of the current world gravity and initializes it to the default gravity if called for the first time.

Choose your operating system:

Windows

macOS

Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/GameFramework/WorldSettings.h

Include

#include "GameFramework/WorldSettings.h"

Source

/Engine/Source/Runtime/Engine/Private/WorldSettings.cpp

Syntax

virtual float GetGravityZ() const

Remarks

Returns the Z component of the current world gravity and initializes it to the default gravity if called for the first time.

Returns

Z component of current world gravity.