Beispiel #1
0
        public static Dictionary <ModelExchangeSizes, float> ModelExchangeDictionary;//= new KeyValuePair<ModelExchangeSizes, float>();

        public Skeleton()
        {
            if (ModelExchangeDictionary == null)
            {
                ModelExchangeDictionary = new Dictionary <ModelExchangeSizes, float>();
                for (int i = 0; i < Enum.GetValues(typeof(ModelExchangeSizes)).Length; i++)
                {
                    string             modelName = Enum.GetValues(typeof(ModelExchangeSizes)).GetValue(i).ToString();
                    ModelExchangeSizes men       = (ModelExchangeSizes)Enum.Parse(typeof(ModelExchangeSizes), modelName, true);
                    ModelExchangeDictionary[men] = 0f;
                }
            }
        }
Beispiel #2
0
        public void UpdateModel_Joints()
        {
            for (int i = 0; i < Enum.GetValues(typeof(ModelExchangeSizes)).Length; i++)
            {
                string             modelName = Enum.GetValues(typeof(ModelExchangeSizes)).GetValue(i).ToString();
                ModelExchangeSizes men       = (ModelExchangeSizes)Enum.Parse(typeof(ModelExchangeSizes), modelName, true);
                float modelValue             = Skeleton.ModelExchangeDictionary[men];
                Humanoid.updateWishList(modelName, modelValue);
            }



            Humanoid.UpdateModel_WishedMeasures(true);
            //Humanoid.update_character(UpdateMode.update_directly_verts);
        }