The Open Source Physics website will be unavailable Friday evening through Saturday afternoon as electrical work occurs in the American Center of Physics server room. Down time will begin at 6PM Eastern Time on Friday. Service is expected to resume by 6PM on Saturday, July 30.

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
175 Posts

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


OSP@SG blog
OSP@SG Digital Library


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