December 2013
Beginner
320 pages
8h 22m
English
This script will allow the player to rotate their turret and aim the cannon.
TurretControls. This script will allow players to rotate the turret left and right and tilt the cannon up and down. As with all of the others, create it in the Scripts folder.GameObjects that we created for our tank. The second set is the speed that our turret and cannon will rotate at. Finally we have some limit values. If we didn't limit how much our cannon could rotate, it would just spin around and around, passing through our tank. This isn't the most realistic behavior for a tank, ...Read now
Unlock full access