Esempio n. 1
0
        /** Set moment, it will change the body's moment this shape attaches */
        public void SetMoment(float moment)
        {
            if (moment < 0)
            {
                return;
            }

            if (_body != null)
            {
                _body.AddMoment(-_moment);
                _body.AddMoment(moment);
            }
            ;

            _moment = moment;
        }