-
gun_engagement
¶
gun_engagement demo¶
|
How to use¶
Populate the variables into the file “input_variables.txt” (They are already input for you using bullet info). The input_variables.txt file has the basic parameters required to create a bullet.
Then do “mission run_me_first.txt”. The run_me_first.txt script will read the input_variables.txt file and create the bullet weapon and launch generator files. The files bullet.txt (weapon) and bullet_buildertool.txt (launch computer builder) are created in the weapons/guns subdirectory.
Next do “mission run_me_second.txt”. This will create a launch computer file in the weapons/guns/subdirectory using the bullet_buildertool.txt file. The file name in this case is bullet_launch_computer.txt. The file bullet_buildertool.txt can be deleted.
The last is to run the scenario that puts the launcher shooting at a target. Prior to running “run_me_third.txt”, modify the platforms/gun_battery.txt file and put the proper weapon (bullet) and launch_computer references in (in this case, they are done for you with the bullet). In the actual bullet weapon file (bullet.txt) you MUST uncomment out the launch computer include file reference (it was commented out to create the launch computer).
Note
In the launch computer file, you can uncomment out the draw methods to see where the launch computer is aiming for.
If you want to see the bullets fly through the target, comment out the fuse in the weapon.
The geometric sensor on the launcher is set to have a 0.1 mil error.