public bool LoadParamsFromCharacter(ParamCharaController controller) { if (controller.ChaControl.dictDynamicBoneBust != null) { DynamicBone_Ver02 dynamicBoneChara; dynamicBoneChara = controller.ChaControl.getDynamicBoneBust(ChaInfo.DynamicBoneKind.HipL); gravity = dynamicBoneChara.Gravity.y; foreach (DynamicBone_Ver02.Particle particle in CharaParamControl.GetCharacterParticles(dynamicBoneChara)) { if (particle.refTrans != null) { if (paramBones.ContainsKey(particle.refTrans.name)) { paramBones[particle.refTrans.name].boneName = particle.refTrans.name; paramBones[particle.refTrans.name].CopyParameterFrom(particle); } } } return(true); } return(false); }
private bool ApplyParamBust() { #if DEBUG BreastPhysicsController.Logger.LogDebug("Call ApplyParamBust"); #endif DynamicBone_Ver02 breastL = ChaControl.getDynamicBoneBust(ChaInfo.DynamicBoneKind.BreastL); if (breastL != null) { #if DEBUG BreastPhysicsController.Logger.LogDebug("ApplyParamBust to BrestL"); #endif if (!CharaParamControl.ApplyParamBust(GetParamBustCustomNow(), breastL)) { return(false); } } else { return(false); } DynamicBone_Ver02 breastR = ChaControl.getDynamicBoneBust(ChaInfo.DynamicBoneKind.BreastR); if (breastR != null) { #if DEBUG BreastPhysicsController.Logger.LogDebug("ApplyParamBust to BrestR"); BreastPhysicsController.Logger.LogDebug(GetParamBustCustomNow().ToString()); #endif if (!CharaParamControl.ApplyParamBust(GetParamBustCustomNow(), breastR)) { return(false); } } else { return(false); } #if DEBUG BreastPhysicsController.Logger.LogDebug("Success ApplyParamBust"); #endif ChaControl.ReSetupDynamicBoneBust(); return(true); }
public bool RestoreBust(ChaControl control) { #if DEBUG BreastPhysicsController.Logger.LogDebug("Call RestoreBust"); #endif if (!backupedBust) { return(false); } DynamicBone_Ver02 breastL = control.getDynamicBoneBust(ChaInfo.DynamicBoneKind.BreastL); DynamicBone_Ver02 breastR = control.getDynamicBoneBust(ChaInfo.DynamicBoneKind.BreastR); CharaParamControl.ApplyParamBust(bust, breastL); CharaParamControl.ApplyParamBust(bust, breastR); backupedBust = false; bust.Clear(); return(true); }
private bool ApplyParamHip() { #if DEBUG BreastPhysicsController.Logger.LogDebug("Call ApplyParamHip"); #endif DynamicBone_Ver02 hipL = ChaControl.getDynamicBoneBust(ChaInfo.DynamicBoneKind.HipL); if (hipL != null) { #if DEBUG BreastPhysicsController.Logger.LogDebug("ApplyParamHip to HipL"); #endif if (!CharaParamControl.ApplyParamHip(paramCustom.paramHip, hipL)) { return(false); } } else { return(false); } DynamicBone_Ver02 hipR = ChaControl.getDynamicBoneBust(ChaInfo.DynamicBoneKind.HipR); if (hipR != null) { #if DEBUG BreastPhysicsController.Logger.LogDebug("ApplyParamHip to HipR"); #endif if (!CharaParamControl.ApplyParamHip(paramCustom.paramHip, hipR)) { return(false); } } else { return(false); } return(true); }
public bool RestoreHip(ChaControl control) { #if DEBUG BreastPhysicsController.Logger.LogDebug("Call RestoreHip"); #endif if (!backupedHip) { return(false); } DynamicBone_Ver02 hipL = control.getDynamicBoneBust(ChaInfo.DynamicBoneKind.HipL); DynamicBone_Ver02 hipR = control.getDynamicBoneBust(ChaInfo.DynamicBoneKind.HipR); CharaParamControl.ApplyParamHip(hip, hipL); CharaParamControl.ApplyParamHip(hip, hipR); backupedHip = false; hip.Clear(); #if DEBUG BreastPhysicsController.Logger.LogDebug("Done RestoreHip"); #endif return(false); }