[quote author=Fu-Kwun Hwang link=topic=2083.msg7816#msg7816 date=1296187299]
The impulse will be fire at zero or 180 degree if the "next" check box is checked.
[/quote]
dear prof,
i found a bug in your code, the "next" didn't work, instead i change k = negative value to fire in 180 deg.

a question:
can explain what does your trigger do?
i look at the trigger has 0 1 2 or 3 but i couldn't understand what is it intended to address.
can explain a bit :)
thanks for the wonderful sharing!




taking the codes from fu-kwun hwang model here http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=2083.0
i added the ability to fire and circular from this model space shuttle motion with impulse and added into the model above Ejs Open Source Newton's Mountain Projectile Orbits Model java applet http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=2204.0 !

enjoy!

http://weelookang.blogspot.sg/2011/05/ejs-open-source-newtons-mountain.html
added ability to fire to add velocity to a achieve eclipse orbit and select circular to achieve circular orbit by applying impulse in directions to get velocity at the correct speed and direction, perpendicular to radius.  this feature helps in the learning of energies change as satellite move from one circular orbit to another circular as requested by soo kok.
https://dl.dropboxusercontent.com/u/44365627/lookangEJSworkspace/export/ejs_NewtonsMountainwee06.jar
author: timberlake, lookang and  fu-kwun hwang

many thanks to prof fu-kwun hwang and his physics validated codes to help ordinary teachers make wonderful models for enhanced teaching and learning for the benefit of all humankind!

licensed creative commons attribution.