コード例 #1
0
    /**
       * Applies attractive forces upon and uprights the given GravityBody.
       */
    public void Attract(GravityBody body)
    {
        body.Gravitate(gravity);

        if (body.rigidbody.freezeRotation) {
          body.UprightPosition(uprightBodiesRate);
        }
    }