Пример #1
0
        public override void Destroy()
        {
            body?.RemoveConstraint(this);

            body = null;
            DisableConstraint();
        }
Пример #2
0
        public override void Destroy()
        {
            // this is moved here from ConstraintVelocity destructor..
            if (body != null)
            {
                body.RemoveConstraint(this);
            }

            body = null;
            DisableConstraint();
        }