GetGravity

Category: Global
Since engine version: 1.0 OC

Description

Returns the current gravity in 1/100 pixel/tick².

Syntax

int GetGravity();

Example

for (var obj in FindObjects(Find_Distance(100)))
  obj->SetYDir(obj->GetYDir(100) - GetGravity(), 100);
Makes the gravitation within a radius of 100 pixels vanish if called every frame.
See also: SetGravity
jwk, 2002-08