From ZDoom Wiki
Jump to navigation Jump to search

clearscope double GetGravity () const


Gets the current gravity of the actor.

Return value

The function returns the result of multiplying the level's gravity with the gravity of the sector in which the calling actor is in, the calling actor's gravity and 0.00125. If the calling actor has the NOGRAVITY flag, the function returns 0.


Nuvolachalk.png Note: This article lists no examples. If you make use of this feature in your own project(s) or know of any basic examples that could be shared, please add them. This will make it easier to understand for future authors seeking assistance. Your contributions are greatly appreciated.