- Home /
Other
How to make the turret on your tank turn
Ok this isn't technically a question, but so many people have asked about this that I thought I should go ahead and tell them how: Make a new Prefab and name it turret. attach the turret and every part of the turret to the new turret prefab. make a hull prefab and two track prefabs. attach the hull and attenae to the hull, attach anything else that supposed to go on the whole to this prefab. attach the right suspension and tracks to one of the track prefabs. do the same with the left track. now attach a mouse look script to the turret. Set the min/max Y to 0 and the sensitivity to 0. leave the min/max X at 360. make sure the gun is properly attached to the turret or it would look pretty weird. also make a camera attached to the turret and angle it to where you can see a little ways in front of the tank. when you Make SURE the camera is attached to the turret or you cant look where th turret rotates. so technicaly if you don't the camera will stay pit while the turret goes round and round .Finally go play the game using the play/pause buttons above the scene and test the turret out!