question

Vincent Béchard avatar image
0 Likes"
Vincent Béchard asked Vincent Béchard commented

How to use the Crane Collision Avoidance like before?

Hi, does someone know how to programmatically use the old crane collision avoidance system? I see all the required variables in the tree, the old GUIs still existe in the views() library... How can I call it by flexscript?

FlexSim 21.2.1
collision
5 |100000

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

1 Answer

·
Phil BoBo avatar image
1 Like"
Phil BoBo answered Vincent Béchard commented

You can use the old crane collision logic by copying its logic into an On In Proximity trigger using a Proximity Agent System.

See Crane collision logic with Agent System - FlexSim Community

Agent Systems use an optimized bounding volume hierarchy for collision detections instead of the old brute-force collision detection system that those collision variables in the tree used to use. The only difference between the old collision detection system and a proximity agent system is that your model will run a lot faster with the new agent systems. You can still get collision triggers firing at the same simulation times; the calculation for those collisions is just faster now with the agent system instead of the brute force for-every-member-check-every-other-member-during-each-interval approach that the old collision detection system used.

· 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.

Vincent Béchard avatar image Vincent Béchard commented ·

Hi Phil, that's right, execution time is much better. I found this post very useful, Afonso's demo file is awesome : https://answers.flexsim.com/questions/100306/crane-collision-logic-with-agent-system.html . Still have a couple of tweaks to implement, for example : moving an idle crane away instead of passing through it!

1 Like 1 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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