EjsS 5.2 seems to have difficulty handling simultaneous events.
Stephen Salser
8 Posts
I created separate events for collisions of particles with the left and right walls.
The events are handled properly when the events are non simultaneous, but when a right wall and left wall collision happen simultaneously, only the right wall even is handled.
These are both Positive Crossing events, and I have tried both Secant and Bisection methods.
Re: EjsS 5.2 seems to have difficulty handling simultaneous events. -
lookang
239 Posts
i agree that EJSS has that issue, to overcome it introduce a very slight difference in the launch position that will result in slightly different in timing of events of colliding with either one of the 4 walls.
Re: EjsS 5.2 seems to have difficulty handling simultaneous events. -
Wolfgang
178 Posts
Use state events rather than positive crossing events if there is the possibility of multiple events occurring almost simultaneously. A positive crossing event will not reset until the error function again exceeds the event tolerance. In other words, a zero crossing event has a dead zone after the event triggers and multiple zero crossings that occur within the tolerance will not be detected. Properly written state events do not have this dead zone.