protected AbstractConstruct(AbstractConstruct cloneFrom) { ParentName = cloneFrom.ParentName; ChildName = cloneFrom.ChildName; Origin = cloneFrom.Origin; Rotation = cloneFrom.Rotation; }
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); }