Ok, so i'm trying to build this awsome turret for Spacebuild.

This turret is just a basic wheel turret using normal or wire wheels.

It has a Gyro and a GPS and instead of firing like a conventional weapon, it relays it's target position to a hoverdrive controller which is attached to a some sort of large explosion device or fusion bomb. The turret with then point in a given direction, the operator will input a firing distance (like firing anti aircraft artillery) and then the weapon will be teleported exactly that distance infront of where the turret it pointed.

now my question is what is the formula I can use for my expression what will calculate the exact position of X units in front of the turret using only the Gyroscope and the GPS.


Currently I can get this to work on a 2 dimentional plane, but I cannot get it to work once I add height into the equation.