question

WillRS avatar image
0 Likes"
WillRS asked Logan Gold commented

How to control the position of flowitem as truck in floor storage?

Hello everyone!

In this model, I am using a floor storage to park trucks while they wait for the loading window. I would like the trucks to be arranged in a linear fashion when parking, rather than at an angle, as shown in the figure.

1728129790427.png

Organize_Truck Warehouse.fsm

FlexSim 23.0.15
warehouselogistics
· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Logan Gold avatar image Logan Gold ♦♦ commented ·

Hi @WillRS, was Felix Möhlmann's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always comment back to reopen your question.

0 Likes 0 ·

1 Answer

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered

When entering the storage, the trucks (items) keep their current orientation. You can see that they are aligned parallel to the path leading to the storage.

You can use the On Slot Entry trigger (better than the On Entry trigger, because you know which slot they entered) to adjust their rotation and set their location. The example below sets the center of the truck to the center of the slot.

item.rotation.z = 90;
item.setLocation(slot.getLocation(0.5, 0.5, 0), Vec3(0.5, 0.5, 0));
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.