YoYo Games Wiki

gravity_direction

From YoYoGames Wiki

Description

(real): The direction of the gravity in which the object will accelerate.

Explanation

The local variable gravity_direction indicates the direction of the gravity. Default, this variable is set to 270°, meaning downwards, which is usually what you want.

If you want the object to fall into an other direction, you can change this value.

  • 90°: gravity up
  • 180°: gravity left
  • 0°: gravity right