Exemplo n.º 1
0
		public FSGearJoint setOtherJoint( FSJoint otherJoint )
		{
			if( _otherJoint != null )
				_otherJoint._attachedJoint = null;
			
			_otherJoint = otherJoint;

			if( _otherJoint != null )
				_otherJoint._attachedJoint = this;
			
			recreateJoint();
			return this;
		}
Exemplo n.º 2
0
        public FSGearJoint SetOtherJoint(FSJoint otherJoint)
        {
            if (_otherJoint != null)
            {
                _otherJoint._attachedJoint = null;
            }

            _otherJoint = otherJoint;

            if (_otherJoint != null)
            {
                _otherJoint._attachedJoint = this;
            }

            RecreateJoint();
            return(this);
        }
        public FSGearJoint setOwnerJoint(FSJoint ownerJoint)
        {
            if (_ownerJoint != null)
            {
                _ownerJoint._attachedJoint = null;
            }

            _ownerJoint = ownerJoint;

            if (_ownerJoint != null)
            {
                _ownerJoint._attachedJoint = this;
            }

            recreateJoint();
            return(this);
        }