The Daily Click ::. Downloads ::. Tutorial ::. Archery physics

Archery physics
Author: Stephen [NeonairGames] Submitted: 8th December, 2008 Favourites:0
Genre: Tutorial Downloads: 313

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.


control target with mouse

left-click to make archers fire

Have fun with this!

Review This Download (921.97 kkb )

Posted by ..:.Phox.:.. 8th December, 2008

At first I thought it'd be for a side view game.

I was sort of put down cuz I thought it'd screw MY sideview arrow engine Image

GLad it didn't ^^ good job =D
Comment edited by ..:.Phox.:.. on 12/9/2008
Posted by Muffin Batel [neonair games] 9th December, 2008

Posted by Stephen [NeonairGames] 11th December, 2008

Batel, get back to work on FHS 2. It MUST be completed.
Posted by Pixelthief 16th December, 2008

something similar here:

quite neat arrow thing tho!





Worth A Click