UTIL_ScaleForGravity

From Valve Developer Community
Revision as of 07:37, 31 May 2024 by WisdomBot (talk | contribs) (Replaced deprecated {{Game name}} template with {{Software}} counterpart. Action performed by bot)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
English (en)Translate (Translate)

Stub

This article or section is a stub. You can help by expanding it.

UTIL_ScaleForGravity is a UTIL function that returns the passed gravity in relation to the world gravity; the formula used is desiredGravity / sv_gravity, or for Team Fortress 2 Team Fortress 2 the formula is desiredGravity / (sv_gravity * TFGameRules()->GetGravityMultiplier()).

Declaration

float UTIL_ScaleForGravity( float desiredGravity );

Examples

Todo: Add examples.