- **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*)

An improved approximate trajectory programThe 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=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 |

[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.