Alice Community An improved approximate trajectory program

 An improved approximate trajectory program
 DickBaldwin Guest   Status: Posts: n/a An improved approximate trajectory program - 10-21-2007, 10:34 AM The discussion of an approximate trajectory program at http://www.alice.org/community/showthread.php?t=1016 was designed to be a lot of fun, but it was short on mathematics and technical details. Furthermore, some of the parameters used in the animation were designed to simply look good and were not based on mathematical accuracy. Now it is time to step back and take a look at the mathematics involved and to show you how to compute the required parameters as a function of target distance and launch angle. This approach uses a circular arc to approximate a parabolic arc, which can result in a smoother animation. In order to use the circular arc as an approximation of a parabolic trajectory, it is necessary to compute the length of the arc as a function of the launch angle and the distance to the target. I have written a new program that shows you how to do that, and also explains some of the theory behind the computations. You can download the world by downloading the zip file at http://www.dickBaldwin.com/alice/alice0930.zip and extracting the file named Trajectory02.a2w from the zip file. You will find a discussion and explanation of the program including a cursory explanation of the mathematics at http://www.dickbaldwin.com/alice/Ali...ectory_program You will also find a discussion on how to create a trajectory for a cruise missile there as well. Dick Baldwin Free Alice tutorials: http://www.dickbaldwin.com/tocalice.htm Free programming tutorials: http://www.dickbaldwin.com/toc.htm Last edited by DickBaldwin; 10-21-2007 at 10:41 AM. Reason: Correct errors
ChyTheTasmanianTiger
Guest

Status:
Posts: n/a
10-21-2007, 11:00 AM

Quote:
 Originally Posted by DickBaldwin The discussion of an approximate trajectory program at http://www.alice.org/community/showthread.php?t=1016 was designed to be a lot of fun, but it was short on mathematics and technical details. Furthermore, some of the parameters used in the animation were designed to simply look good and were not based on mathematical accuracy. Now it is time to step back and take a look at the mathematics involved and to show you how to compute the required parameters as a function of target distance and launch angle. This approach uses a circular arc to approximate a parabolic arc, which can result in a smoother animation. In order to use the circular arc as an approximation of a parabolic trajectory, it is necessary to compute the length of the arc as a function of the launch angle and the distance to the target. I have written a new program that shows you how to do that, and also explains some of the theory behind the computations. You can download the world by downloading the zip file at http://www.dickBaldwin.com/alice/alice0930.zip and extracting the file named Trajectory02.a2w from the zip file. You will find a discussion and explanation of the program including a cursory explanation of the mathematics at http://www.dickbaldwin.com/alice/Ali...ectory_program You will also find a discussion on how to create a trajectory for a cruise missile there as well. Dick Baldwin Free Alice tutorials: http://www.dickbaldwin.com/tocalice.htm Free programming tutorials: http://www.dickbaldwin.com/toc.htm
Cool Looks like I could use that

threshold91
Junior Member

Status: Offline
Posts: 1
Join Date: May 2012
05-06-2012, 02:49 PM

Quote:
 Originally Posted by DickBaldwin The discussion of an approximate trajectory program at http://www.alice.org/community/showthread.php?t=1016 was designed to be a lot of fun, but it was short on mathematics and technical details. Furthermore, some of the parameters used in the animation were designed to simply look good and were not based on mathematical accuracy. Now it is time to step back and take a look at the mathematics involved and to show you how to compute the required parameters as a function of target distance and launch angle. This approach uses a circular arc to approximate a parabolic arc, which can result in a smoother animation. In order to use the circular arc as an approximation of a parabolic trajectory, it is necessary to compute the length of the arc as a function of the launch angle and the distance to the target. I have written a new program that shows you how to do that, and also explains some of the theory behind the computations. You can download the world by downloading the zip file at http://www.dickBaldwin.com/alice/alice0930.zip and extracting the file named Trajectory02.a2w from the zip file. You will find a discussion and explanation of the program including a cursory explanation of the mathematics at http://www.dickbaldwin.com/alice/Ali...ectory_program You will also find a discussion on how to create a trajectory for a cruise missile there as well.
Thanks for the upload man, your trajectory worlds helped me a lot, also your tutorials rocks, =)

 Thread Tools Display Modes Linear Mode

 Posting Rules You may not post new threads You may not post replies You may not post attachments You may not edit your posts BB code is On Smilies are On [IMG] code is On HTML code is Off Forum Rules
 Forum Jump User Control Panel Private Messages Subscriptions Who's Online Search Forums Forums Home Announcements     Community News and Announcements Alice 3     How Do I?     Works In Progress     Share Your World     Share Custom Classes     Bugs and Trouble Shooting     Suggestion Box Alice 2     How do I...?     Works-In-Progress     Share Worlds     Share Objects     Bugs and Troubleshooting     Suggestion Box Educators     Teaching with Alice     Teaching Using Alice 3     Teaching Using Alice 2     CS Principles and Alice     AP CSA and Intro to Java and Alice     Workshops     Alice Player and VR General Discussion     Questions and Comments     The Lounge