Turrets
Creating A Gun Turret
To create a gun turret:
Create a new game object and call it 'Gun Turret'.
Add a Gun Turret component, this will add Gun Weapon and Gimbal Controller components.
Add your turret rig or create one with horizontal and vertically rotating parts
Set the Horizontal Pivot and Vertical Pivot in the inspector of the Gimbal Controller
Add a gun weapon unit and add it to the Weapon Units list in the inspector of the Gun Weapon component
If you wish the turret to acquire targets on its own, add Tracker and Tracker Target Selector components to the turret, and drag the target selector into the Target Selector field in the inspector of the Gun Turret component.
Creating A Missile Turret
To create a missile turret:
Create a new game object and call it 'Missile Turret'.
Add a Missile Turret component, this will add Missile Weapon, Gimbal Controller and Target Locker components.
Add your turret rig or create one with horizontal and vertically rotating parts
Drag the vertical pivot of your turret into the Locking Reference Transform field in the inspector of the Target Locker component
Set the Horizontal Pivot and Vertical Pivot in the inspector of the Gimbal Controller
Add a missile weapon unit and add it to the Weapon Units list in the inspector of the Missile Weapon component
If you wish the turret to acquire targets on its own, add Tracker and Tracker Target Selector components to the turret, and drag the target selector into the Target Selector field in the inspector of the Missile Turret component.
Last updated