Пример #1
0
        public override cForce copy( )
        {
            cForceObjectSpringRod f = new cForceObjectSpringRod();

            f.copy(this);
            return(f);
        }
Пример #2
0
        public override void copy(cForce pforce)
        {
            base.copy(pforce);
            if (!(pforce is cForceGravity))
            {
                return;
            }
            cForceObjectSpringRod pforcechild = ( cForceObjectSpringRod )(pforce);

            _rodlength = pforcechild._rodlength;
        }