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) }
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(); }