APS Excellence in Physics Education Award
November 2019

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
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 -
lookang Avatar
lookang
222 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 -
Wallace Barbosa
7 Posts

Dear lookang, thank you.



OSP Projects:
Open Source Physics - EJS Modeling
Tracker
Physlet Physics
Physlet Quantum Physics
STP Book