What I´m trying to do is making the cargo jump back to it´s original position if it doesn´t fit inside the box. The black lines surrounding the top left box is the border collision. This works there are only one instance of the cargo in the layout. But if there are more than one, all of them jump back, even if only one of them overlapped the border. How do I make it so that only the instance that overlapped the border jumps back while the rest of them stay where they are?
Please explain as simple as you can, since I´m not a an experienced game developer.