Archery physics
Author: | Stephen [NeonairGames]
|
Submitted: | 8th December, 2008
|
Favourites: | 0 |
Genre: | Tutorial
| Downloads: | 311
|
Rated: |
|
|
Edited By Snerlin [NG] on 12/8/2008
Time for my semi-annual contribution to TDC: An archery physics engine that computes firing angles based off the initial firing velocity, the acceleration due to gravity, and the archer and target's relative X,Y coordinates. The engine is built to support multiple archers.
I made this engine for a game I'm currently working on and have decided to release it as open source (the engine, not the game). A proof is included in the zip file along with the source code. (Excuse that I just took a picture of the proof written out on paper. Yeah, it takes up the majority of the download size, but it wasn't worth dealing with the type-setting. Also, I know my handwriting is obnoxious)
Feel free to use this engine in your games. It should just copy and paste easily (with some changes to alterable values being used). Just be sure to remove or replace any sections of code used solely for the tutorial demonstration (marked by comments) and give me credit.
This engine can be applied to nearly any type of projectile.
Controls:
control target with mouse
left-click to make archers fire
Have fun with this!
Review This Download
 http://www.neonairgames.net/misc/tutorials/archeryPhysics.zip (921.97 kkb )
|
|
Is this worth a look? Let others know! Favourite
|