Implementation of calculateWeaponPosition. (not tested/used)