public override void OnInputDisconnected(BlockBase src, string srcSlotName, string targetSlotName) { base.OnInputDisconnected(src, srcSlotName, targetSlotName); if (targetSlotName == "set_Proximal") { Proximal = null; } else if (targetSlotName == "set_Middle") { Middle = null; } else if (targetSlotName == "set_Distal") { Distal = null; } }
void SetJoint(HumanBodyBones bone, TxBodyInput.JointModalityAccessor j) { SetRotation(bone, j.Rotation); SetPosition(bone, j.Position); }