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.

is _view.trailSet.newSegment(); working for array set?

Return to the EJS Modeling forum
Login to post to this thread

is _view.trailSet.newSegment(); working for array set?
lookang Avatar
lookang
222 Posts

dear prof paco,



i managed to get is _view.trail.newSegment(); to work for a single line which is wonderful. thanks!

but array of lines work with the line of code too?

is _view.trailSet.newSegment(); // working for array set?

see my scr for details on the initialize button!
i commented out the line to ensure the model runs, enabling it will hang the model


more info can be found here
http://weelookang.blogspot.sg/2015/02/ejss-2-cannon-aim-at-each-other.html

Post edited February 10, 2015 at 10:54 AM EST.

Post edited February 10, 2015 at 10:54 AM EST.

Attached File: ejss_src_projectile2cannon.zip


OSP@SG blog
OSP@SG Digital Library

Current Replies - View all
Re: is _view.trailSet.new...   (Francisco Esquembre - )
Re: Re: is _view.trailSet...   (lookang - )
Re: Re: Re: is _view.trai...   (Francisco Esquembre - )
Re: Re: Re: Re: is _view....   (lookang - )
Re: Re: Re: Re: Re: is _v...   (Francisco Esquembre - )
Re: Re: Re: Re: Re: Re: i...   (lookang - )
Re: Re: Re: Re: Re: Re: i...   (lookang - )
Re: Re: Re: Re: Re: Re: R...   (Francisco Esquembre - )
Re: Re: Re: Re: Re: Re: R...   (lookang - )
Re: Re: Re: Re: Re: Re: R...   (Francisco Esquembre - )
Re: Re: Re: Re: Re: Re: R...   (lookang - )
Re: Re: Re: Re: Re: Re: R...   (Francisco Esquembre - )
OSP Projects:
Open Source Physics - EJS Modeling
Tracker
Physlet Physics
Physlet Quantum Physics
STP Book