コード例 #1
0
        public void CustomUpdate()
        {
            if (!contactPointSet)
            {
                var contactPoint = memoryBridge.GetVector3(wristServo.servoName + "contactPoint");

                if (contactPoint != Vector3.zero)
                {
                    Debug.Log("Set ground point to " + contactPoint);
                    //wristServo.contactPoint = contactPoint;
                    wristServo.CreateContactPoint(contactPoint);
                    contactPointSet = true;
                }
            }

            //if (!FlightGlobals.ActiveVessel.packed)
            foreach (var servo in limbServos)
            {
                servo.CustomUpdate();
            }
            if (contactPointSet)
            {
                wristServo.CheckFootClearance();
            }

            //  if(footPart)
            //      if(footPart.torque)
        }
コード例 #2
0
        public void CustomUpdate()
        {
            //if (!contactPointSet)
            //{
            //    //var contactPoint = memoryBridge.GetVector3(wristServo.servoName + "contactPoint");

            //    //if (contactPoint != Vector3.zero)
            //    //{
            //    //    Debug.Log("Set ground point to " + contactPoint);
            //    //    //wristServo.contactPoint = contactPoint;
            //    //    wristServo.CreateContactPoint(contactPoint);
            //    //    contactPointSet = true;
            //    //}
            //}

            foreach (var servo in limbServos)
            {
                servo.CustomUpdate();
            }
           // if (contactPointSet)
                wristServo.CheckFootClearance();
        }