public static void UpdateButtPhysics(DynamicBone_Ver02 bone, float damping, float elasticity, float stiffness, float inert) { if (bone == null) { return; } bone.setSoftParams(0, -1, damping, elasticity, stiffness, true); bone.setSoftParamsEx(0, -1, inert, true); bone.ResetPosition(); }
public static void UpdateBustSoftness(DynamicBone_Ver02 bone, int[] changePtn, float damping, float elasticity, float stiffness) { if (bone == null) { return; } foreach (int ptn in changePtn) { bone.setSoftParams(ptn, -1, damping, elasticity, stiffness, true); } }