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]
  2. double gravityScale [@property setter]
    struct RigidBody2D
    @nogc nothrow @property
    void
    gravityScale
    (
    double v
    )

Meta