Example #1
0
 public void CopyParameterTo(DynamicBone_Ver02.BoneParameter parameter)
 {
     parameter.IsRotationCalc = IsRotationCalc;
     parameter.Damping        = Damping;
     parameter.Elasticity     = Elasticity;
     parameter.Stiffness      = Stiffness;
     parameter.Inert          = Inert;
 }
Example #2
0
 public bool CopyParameterFrom(DynamicBone_Ver02.BoneParameter boneParameter)
 {
     try
     {
         IsRotationCalc = boneParameter.IsRotationCalc;
         Damping        = boneParameter.Damping;
         Elasticity     = boneParameter.Elasticity;
         Stiffness      = boneParameter.Stiffness;
         Inert          = boneParameter.Inert;
     }
     catch (Exception e)
     {
         BreastPhysicsController.Logger.Log(BepInEx.Logging.LogLevel.Warning, "Failed copy DynamicBoneParam.");
         return(false);
     }
     return(true);
 }