Beispiel #1
0
        public IJoint DeepCopy()
        {
            AssimpBoneWrapper copy = new AssimpBoneWrapper(Id, Name);

            copy.BaseTransform      = new Matrix4x4(BaseTransform);
            copy.AnimationTransform = new Matrix4x4(AnimationTransform);

            foreach (IJoint child in Children)
            {
                copy.AddChild(child.DeepCopy());
            }

            for (int i = 0; i < 3; i++)
            {
                copy.Constraints[i] = new Vector2D(Constraints[i]);
            }

            return(copy);
        }
        public IJoint DeepCopy()
        {
            AssimpBoneWrapper copy = new AssimpBoneWrapper(Id, Name);
            copy.BaseTransform = new Matrix4x4(BaseTransform);
            copy.AnimationTransform = new Matrix4x4(AnimationTransform);

            foreach (IJoint child in Children)
                copy.AddChild(child.DeepCopy());

            for (int i = 0; i < 3; i++)
                copy.Constraints[i] = new Vector2D(Constraints[i]);

            return copy;
        }