RigidBody2D.gravityScale

Multiplies the gravity applied to the body. The body's gravity is calculated from the "Default Gravity" value in "Project > Project Settings > Physics > 2d" and/or any additional gravity vector applied by Area2Ds. Default value: 1.

  1. double gravityScale [@property getter]
    struct RigidBody2D
    @nogc nothrow @property
    double
    gravityScale
    ()
  2. double gravityScale [@property setter]

Meta