I tried combining the two conditions into a single state link by setting the “Other Conditions” as follows, but it didn’t work:
AND Collision with wall
AND Switch 1 is off
OR Collision with wall
AND Switch 2 is on
No matter how many times I tried, only the conditions below the OR (Collision with wall AND Switch 2 is on) were executed. Interestingly, if I swap the order, the conditions above the OR (Collision with wall AND Switch 1 is off) are executed, but the conditions placed above the OR after swapping are ignored. Even if the conditions above the OR are met, they are not executed regardless of the conditions.
The result was the same whether I set the switch conditions to “All” or “Any”.
I also tried changing the position of the OR as follows, but the result was the same:
AND Collision with wall
OR Switch 1 is off
AND Collision with wall
AND Switch 2 is on
The state does not transition unless Switch 2 is turned on, even if the wall is touched.
When these two conditions are connected via separate links, both transitions work correctly.
Only when combined into a single link is only the latter one executed.
As a test, the following configuration with one condition each also worked:
AND Collision with wall
OR Switch 1 is off
If I connect multiple links to a single state with one condition each, it works, but connecting multiple links to an ANY state causes abnormal behavior and significant lag, so I want to reduce the number of links as much as possible.
Could you please explain what the specification is for this? I would appreciate any insight.