private static LineDraft CreateLineDraft(SideGenerationSettings settings) { var result = LineDraft.Create(); result.length = settings.length; result.height = settings.height; result.forwardScale = settings.forwardScale; result.parent = settings.parent; result.pivot = settings.pivot; result.up = settings.up; result.right = settings.right; return(result); }
private static SideGenerationSettings CreateSideSettings(BoxGenerationSettings settings) { var result = SideGenerationSettings.Create(); result.length = settings.length; result.height = settings.sidesHeight; result.forwardScale = 1f; result.parent = settings.parent; result.pivot = settings.pivot; result.up = settings.up; result.right = settings.right; result.forward = settings.forward; return(result); }
private static void GenerateLine(SideItem item, SideGenerationSettings settings) { var lineDraft = CreateLineDraft(settings); item.builder.Build(lineDraft); }