Hey!
this is my code for the operator to become an operator carrying a pallet truck
When the box is size X, it is centered and ok. When it is smaller than X, it is visually out of the pallet truck. How can I correct this code so that the pallet truck loads both types of boxes in the correct x, y, z positions?
/**Custom Code*/
Object item = param(1);
Object current = ownerobject(c);
Object station = param(2);
setrot(item,0,0,90);
setloc(item,1,0.32,0.13+(current.subnodes.length-1)*item.size.z);
What if I want the boxes to be evenly distributed instead of being stacked in a single row using the same code as above?