コード例 #1
0
ファイル: FSGearJoint.cs プロジェクト: prime31/Nez
		public FSGearJoint setOtherJoint( FSJoint otherJoint )
		{
			if( _otherJoint != null )
				_otherJoint._attachedJoint = null;
			
			_otherJoint = otherJoint;

			if( _otherJoint != null )
				_otherJoint._attachedJoint = this;
			
			recreateJoint();
			return this;
		}
コード例 #2
0
ファイル: FSGearJoint.cs プロジェクト: alanmbennett/Diez
        public FSGearJoint SetOtherJoint(FSJoint otherJoint)
        {
            if (_otherJoint != null)
            {
                _otherJoint._attachedJoint = null;
            }

            _otherJoint = otherJoint;

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

            RecreateJoint();
            return(this);
        }
コード例 #3
0
        public FSGearJoint setOwnerJoint(FSJoint ownerJoint)
        {
            if (_ownerJoint != null)
            {
                _ownerJoint._attachedJoint = null;
            }

            _ownerJoint = ownerJoint;

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

            recreateJoint();
            return(this);
        }