Education Prize Logo
Science SPORE Prize
November 2011

NSF Logo
The Open Source Physics Project is supported by NSF DUE-0442581.

Pause simulation post and replies

Return to the Pause simulation thread
Login to post to this thread

Pause simulation - Sep 5, 2013 at 10:31AM
Wallace Barbosa
7 Posts

Dear experts,

By running the simulation all happens naturally, but when the first body reaches the ground the pause simulation. I would like your help to when only the last body that is "true" hit the ground the pause simulation.

Cheers,
Wallace Barbosa

Attached File: ejs_QuedaLivrefinal2.rar


Replies to Pause simulation

Re: Pause simulation - Sep 19 2013 9:55PM
lookang Avatar
lookang
79 Posts

change to
if ((y1 + y0 <= -0.1)&&(y2 + y0 <= -0.1)&&(y3 + y0 <= -0.1)) _pause();


http://weelookang.blogspot.sg


Re: Re: Pause simulation - Sep 20 2013 9:21AM
Wallace Barbosa
7 Posts

Dear lookang, thank you.



The OSP Network:
Open Source Physics - Tracker - EJS Modeling
Physlet Physics
Physlet Quantum Physics