question

Maria B17 avatar image
0 Likes"
Maria B17 asked Felix Möhlmann commented

How can I count "unique" collisions

I need to do exactly what was proposed in this situation (click here) already resolved here on the forum, however this resolution is from a very old version of flexsim and no longer works, is there anything that can be done in the current version (24)



FlexSim 24.1.0
dashboardscranecountcolision
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

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

The old collision was superceded by the proximity behaviour of the agent system. There you can increment a counter similar to how it's done in your linked post in the On Enter Proximity trigger. This fires when two agents enter proximity, meaning they enter each others collision radius.

https://docs.flexsim.com/en/24.0/Reference/Tools/AgentSystem/ProximityBehavior/ProximityBehavior.html

This trigger would still fire for each agent, so to increment the counter by 1 for each collision, you could try incrementing it by 0.5 in the trigger. Though there are edge cases where one agent enters proximity of another one but not vice versa.

· 2
5 |100000

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