Archive for the 'Garry's Mod' Category

Wire mortar

Friday, January 9th, 2009 by Oppernerd

I like to play around with Wire tools in Garry’s mod. Check what I built this time: a mortar with a control panel. Good for hitting stationary targets.

Notes:

For gravity I used 600 inches/second^2
To compensate for air resistance I just subtracted 180 from my launch speed.
The equation I used for the angle is as follows:

Ang = 90 – (0.5 * asin((600 * (sqrt(((Gx – Tx)^2) + ((Gy – Ty)^2))))/(1800^2)))

where Gx and Gy are the mortar’s position and Tx and Ty are the target’s position.
The range is between 600 and about 4400 inches from the mortar.