public void LoadPallet() { Core.Resources.Mesh mesh = Common.Meshes.Get("cube"); palletLoad = Load.Create(mesh, LoadLength, LoadHeight - euroPalletInfo.height, LoadWidth); palletLoad.Color = LoadColor; palletLoad.UserDeletable = false; palletLoad.OnSelecting += palletLoad_OnSelecting; palletLoad.Yaw = Trigonometry.PI(Trigonometry.Angle2Rad(Angle)); Group(palletLoad, new Vector3(0, (LoadHeight / 2) + 0.001f, 0)); }
private void LoadTray() { Core.Resources.Mesh mesh = Common.Meshes.Get("cube"); var loadLength = LoadLength; if (loadLength - trayInfo.length <= 0) { loadLength = loadLength - 0.01f; } var loadWidth = LoadWidth; if (loadWidth - trayInfo.width <= 0) { loadWidth = loadWidth - 0.01f; } trayLoad = Load.Create(mesh, loadLength, LoadHeight, loadWidth); trayLoad.Color = LoadColor; trayLoad.Deletable = false; //trayLoad.Selectable = false; trayLoad.OnSelecting += trayLoad_OnSelecting; Group(trayLoad, new Vector3(0, (LoadHeight / 2) - Height + 0.01f, 0)); }