Alice Community

Alice Community (http://www.alice.org/community/index.php)
-   Share Worlds (http://www.alice.org/community/forumdisplay.php?f=6)
-   -   An improved approximate trajectory program (http://www.alice.org/community/showthread.php?t=1020)

DickBaldwin 10-21-2007 09:34 AM

An improved approximate trajectory program
 
The discussion of an approximate trajectory program at [URL]http://www.alice.org/community/showthread.php?t=1016[/URL] 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 [URL]http://www.dickBaldwin.com/alice/alice0930.zip[/URL] 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 [URL]http://www.dickbaldwin.com/alice/Alice0930.htm#An_improved_approximate_trajectory_program[/URL]

You will also find a discussion on how to create a trajectory for a cruise missile there as well.

Dick Baldwin
Free Alice tutorials: [URL]http://www.dickbaldwin.com/tocalice.htm[/URL]
Free programming tutorials: [URL]http://www.dickbaldwin.com/toc.htm[/URL]

ChyTheTasmanianTiger 10-21-2007 10:00 AM

[QUOTE=DickBaldwin;3974]The discussion of an approximate trajectory program at [URL]http://www.alice.org/community/showthread.php?t=1016[/URL] 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 [URL]http://www.dickBaldwin.com/alice/alice0930.zip[/URL] 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 [URL]http://www.dickbaldwin.com/alice/Alice0930.htm#An_improved_approximate_trajectory_program[/URL]

You will also find a discussion on how to create a trajectory for a cruise missile there as well.

Dick Baldwin
Free Alice tutorials: [URL]http://www.dickbaldwin.com/tocalice.htm[/URL]
Free programming tutorials: [URL]http://www.dickbaldwin.com/toc.htm[/URL][/QUOTE]

Cool Looks like I could use that :D

threshold91 05-06-2012 01:49 PM

[QUOTE=DickBaldwin;3974]The discussion of an approximate trajectory program at [URL]http://www.alice.org/community/showthread.php?t=1016[/URL] 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 [URL]http://www.dickBaldwin.com/alice/alice0930.zip[/URL] 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 [URL]http://www.dickbaldwin.com/alice/Alice0930.htm#An_improved_approximate_trajectory_program[/URL]

You will also find a discussion on how to create a trajectory for a cruise missile there as well.
[/QUOTE]

Thanks for the upload man, your trajectory worlds helped me a lot, also your tutorials rocks, =)


All times are GMT -5. The time now is 04:22 PM.

Copyright ©2020, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.