Turret Controller Template
A downloadable asset pack
A standalone Turret Controller System made for Unity.
Compatible with any render pipeline.
The demo scene and included example models rely on the Universal Render Pipeline, but the included scripts work with any pipeline.
Key Features
- Completely Independent Input System.
- Rotate, fire and change between first and third person with the press of a button.
- This uses Unity's New Input System, and a completely independent control scheme, so you can stick with the default controls to work out of the box, or easily customise your own!
- Supports any input device. By default, it works on keyboard, mouse and controller.
- One Script Solution
- Just drop CannonController.cs onto your object, tweak the values, and you're set.
- Easily Customisable.
- Every value is changeable in the editor.
- From the horizontal and vertical pivot points, to the projectile and camera perspective, you have complete control with no coding needed to change any of these values.
- First and Third Person Views
- Easily switch between camera perspectives at the press of a button - or disable a perspective. It's up to you!
- Documentation
- There is clear and well documented code inside the CannonController.cs script, alongside a manual detailing everything you need to know to get this to work.
- Includes a step by step tutorial on how to set everything up.
- SFX Support
- Supports sound effects for firing the turrets!
- Simply drop them in to the Firing Clip field.
- Firing Effect
- Plays a particle effect when the turret fires!
- Automatically loops the effect when needed, to make it appear seamless between shots.
- You can swap this out for whatever particle effect suits your project's needs.
- Firing Projectiles
- No turret would be complete without the ability to shoot!
- Drop in any object you want - this controller will fire them all!
- Full Movement
- Left, right, forwards, backwards, you can move your turret in any direction!
- As always, it's completely optional and can be disabled for a static turret.
- The direction/speeds are set individually (for X and Y), so you can decide to prevent moving in either or both directions!
- Not A Turret? No Problem!
- Disable the ability to shoot and you can use this controller for all manner of things!
- Are you making a telescope? The passenger seat of a car?
- If you want an independently controlled camera, this is the asset for you!
- Uses Your Existing Camera
- You don't need to worry about keeping your UI consistent between cameras, as this will reposition your existing camera!
- No need to worry about the order of your cameras.
- Compatible With Splitscreen
- This controller will work with the splitscreen already set up in your project!
Included Assets
- WW2 Style Artillery Cannon
- 16th/17th Century Style Cannon on Wheels
- Cannonball - with an initial velocity script already applied for making quick and simple projectiles!
This asset uses Cannon - 16th/17th Century - Low Poly - Game Ready under the CC0 1.0 (no copyright) license. See Third-Party Notices.txt file in package for details
These are assets already set up as existing examples, with everything but sound effects already set up - the audio in the video example is NOT included and is only a demo.
Demo Scene
This template features a set-up demo scene, featuring stacked cubes for you to test out your turrets against, and a selector for quickly switching between all of the turrets in the scene. No need to set up your own way to activate these turrets!
No matter what you're making, whether it's a vehicle mounted gun or a wave defense game, this controller makes building turrets fast and simple, and helps you iterate freely.
Also available at the Unity Asset Store:
Published | 6 days ago |
Status | Released |
Category | Assets |
Author | TrainedEye |
Genre | Shooter |
Made with | Unity |
Tags | 3D, cannon, Controller, First-Person, Simple, Project template, Third Person, turret, Unity |
Average session | A few seconds |
Inputs | Keyboard, Mouse, Xbox controller, Gamepad (any), Joystick |
Accessibility | Configurable controls |
Purchase
In order to download this asset pack you must purchase it at or above the minimum price of $4.99 USD. You will get access to the following files:
Development log
- Version 1.1 - Movement + Itch Release6 days ago
Leave a comment
Log in with itch.io to leave a comment.