예제 #1
0
 protected AbstractConstruct(AbstractConstruct cloneFrom)
 {
     ParentName = cloneFrom.ParentName;
     ChildName  = cloneFrom.ChildName;
     Origin     = cloneFrom.Origin;
     Rotation   = cloneFrom.Rotation;
 }
예제 #2
0
        protected Matrix4 internalGetTransform(Matrix4 matrix)
        {
            if (parentExists)
            {
                if (parent == null)
                {
                    parent = constructs.Find(ParentName);
                }
                if (parent != null)
                {
                    matrix = matrix * parent.Transform;
                }
                else
                {
                    parentExists = false;
                }
            }

            return(matrix);
        }