SetGravity

Category: Global
Since engine version: 4.6.5.0 CP

Description

Sets the gravity. Normal gravity is 100% and results in an acceleration of 0.2 pixels per Tick² (increasing YDir by 2 per Tick with iPrecision=10).

Syntax

void SetGravity (int iGravity);

Parameter

iGravity:
New gravity: value -300 til 300 (in percent)
See also: GetGravity
jwk, August 2002