Hello,
I got a container with a basic pack method that stores 6 flow items like the image below:
The operator needs, for each flow item inside the box, remove from box, do a visual inspection and place back in the same position. But when I remove the item from the container, the item's positions changes (not visually), and I cant place it back. For example, if I remove the first item, as soon as the item leaves, the second becomes the first and I can't use the code like these to index back: Model.find("QueueIN/Container1").subnodes[1].
What should I do?
Oh, and I don't know if its important, but this is my container packing method:
for (int i = 1; i <= 6; i++) {
// Check to see if the flowitem is the first one in
if (current.subnodes.length == 1) {
item.setLocation(0.05, -0.235, current.size.z - 0.1);
return 0;
}else {
item.setLocation(lastitem.location.x, lastitem.location.y + 0.05, lastitem.location.z);
}
}