コード例 #1
0
ファイル: Util.cs プロジェクト: FairBear/HS2_BoobSettings
        public static void UpdateBustInert(DynamicBone_Ver02 bone, float inert)
        {
            if (bone == null)
            {
                return;
            }

            bone.setSoftParamsEx(0, -1, inert, true);
            bone.ResetPosition();
        }
コード例 #2
0
ファイル: Util.cs プロジェクト: FairBear/HS2_BoobSettings
        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();
        }