RigidBody2D.inertia

The body's moment of inertia. This is like mass, but for rotation: it determines how much torque it takes to rotate the body. The moment of inertia is usually computed automatically from the mass and the shapes, but this function allows you to set a custom value. Set 0 (or negative) inertia to return to automatically computing it.

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

Meta