public static void Test()
        {
            var e = new Employee(Guid.NewGuid(), "Marcin", "mail", "234-345-645", true, false);

            Console.WriteLine(e);
            var userCreationResult = UserCreationResult.NewInvalidChars("invalid char result");

            FTypesSharingTest.Say.hello("Marcin");
            var vector = new FVector(2, 2);

            Console.WriteLine(vector);
            IFVector vector2 = new FVector(2, 2);
            IFVector vector3 = vector2.Scale(3);

            Console.WriteLine(vector3);
        }
示例#2
0
        public FVector GetBoneScale(FTransform[] transforms, int boneIndex)
        {
            var scale = new FVector(1);

            // Get the parent bone, ignore scale of the current one
            boneIndex = FinalRefBoneInfo[boneIndex].ParentIndex;
            while (boneIndex >= 0)
            {
                var boneScale = transforms[boneIndex].Scale3D;
                // Accumulate the scale
                scale.Scale(boneScale);
                // Get the bone's parent
                boneIndex = FinalRefBoneInfo[boneIndex].ParentIndex;
            }

            return(scale);
        }