Exemple #1
0
        public static void UpdateBustInert(DynamicBone_Ver02 bone, float inert)
        {
            if (bone == null)
            {
                return;
            }

            bone.setSoftParamsEx(0, -1, inert, true);
            bone.ResetPosition();
        }
Exemple #2
0
        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();
        }