Unity logo
Cancel
Cart
Applications
Sell Assets

Over 11,000 five-star assets

Rated by 85,000+ customers

Supported by 100,000+ forum members

Every asset moderated by Unity

Home
Templates
Systems
1/8
A fully-featured, customizable Toon Tank Controller for Unity, supporting movement, turret targeting, shooting, health management, and obstacle avoidance. Includes NPCs also and a game manager
Render pipeline compatibility
The Built-in Render Pipeline is Unity’s default render pipeline. It is a general-purpose render pipeline that has limited options for customization. The Universal Render Pipeline (URP) is a Scriptable Render Pipeline that is quick and easy to customize, and lets you create optimized graphics across a wide range of platforms. The High Definition Render Pipeline (HDRP) is a Scriptable Render Pipeline that lets you create cutting-edge, high-fidelity graphics on high-end platforms.
Unity VersionBuilt-inURPHDRP
6000.0.24f1
Compatible
Not compatible
Not compatible
Description

The Toon Tank Controller is a robust and highly customizable tank control system for Unity, perfect for arcade-style combat games. This package provides smooth tank movement, turret aiming, and projectile-based firing mechanics, complete with recoil effects and collision avoidance. The system includes:

  • Tank Movement: Acceleration, turning, and boost functionality with customizable speed and physics-based controls.
  • Turret Targeting: Auto and manual targeting modes, with enemy detection using OverlapSphere.
  • Projectile System: Fires physics-based projectiles with force, includes recoil, and integrates a customizable ammo system.
  • Health & Damage System: Health bar integration, damage detection, and explosion effects upon destruction.
  • Obstacle Avoidance: Uses SphereCast and OverlapSphere to detect and prevent movement through walls.
  • Ground Alignment System: Ensures the tank follows terrain contours using raycasting.
  • NPC Waypoint System: The integrated Game Manager tracks NPCs that navigate via waypoints.
  • Debugging Tools: Includes visual gizmos for targeting ranges and collision detection.

This asset is optimized for performance and can be easily extended to fit different gameplay needs. Whether you’re building a casual arcade shooter or a strategic tank battle game, this controller provides a solid foundation.


Features

1. Movement System

  • Forward & Backward Movement: Controlled via Input.GetAxis("Vertical").
  • Turning: Rotates the tank using Input.GetAxis("Horizontal").
  • Boost Mode: Temporarily increases movement speed when activated (Left Shift key).
  • Collision Prevention: Uses an OverlapSphere check to ensure the tank does not move through obstacles such as walls.

2. Turret and Targeting System

  • Manual & Auto Targeting Modes:
    Manual: Player aims manually.
    Auto: Automatically selects and tracks the nearest target within a specified range.
  • Target Lock System: Uses Physics.OverlapSphere to identify potential targets within range.
  • Line of Sight Check:
    Uses Physics.SphereCast to determine if there are obstacles blocking the target.
    Debug visualization using Debug.DrawLine to indicate when an obstacle is detected.

3. Shooting and Recoil Mechanics

  • Firing System:
    Shoots projectiles from the tank’s fire point when Space key is pressed.
    Uses Rigidbody.AddForce to apply impulse force to the projectile.
  • Recoil System:
    When the tank fires, it temporarily moves backward (recoilDistance).
    Speed is gradually restored using speedRampUpRate.

4. Ground Alignment System

  • Uses Physics.Raycast to detect the ground.
  • Adjusts the tank’s height to prevent floating or sinking.
  • Aligns the tank's rotation to match the ground’s normal.

5. Ammo and Health System

  • Ammo Management:
    Limits the number of projectiles that can be fired.
    Displayed visually using UI icons.
  • Health System:
    Tracks tank health and updates a UI health bar.
    On zero health, the tank is destroyed, triggering an explosion effect and respawning.

6. NPC Waypoint System (Managed by GameManager)

  • The GameManagerTank script keeps track of NPCs using waypoint-based navigation.
  • NPCs move along pre-defined paths.
  • This allows for AI-controlled enemies that patrol or follow strategic movement patterns.
Technical details

Features

1. Movement System

  • Forward & Backward Movement: Controlled via Input.GetAxis("Vertical").
  • Turning: Rotates the tank using Input.GetAxis("Horizontal").
  • Boost Mode: Temporarily increases movement speed when activated (Left Shift key).
  • Collision Prevention: Uses an OverlapSphere check to ensure the tank does not move through obstacles such as walls.

2. Turret and Targeting System

  • Manual & Auto Targeting Modes: Manual: Player aims manually. Auto: Automatically selects and tracks the nearest target within a specified range.
  • Target Lock System: Uses Physics.OverlapSphere to identify potential targets within range.
  • Line of Sight Check: Uses Physics.SphereCast to determine if there are obstacles blocking the target. Debug visualization using Debug.DrawLine to indicate when an obstacle is detected.

3. Shooting and Recoil Mechanics

  • Firing System: Shoots projectiles from the tank’s fire point when Space key is pressed. Uses Rigidbody.AddForce to apply impulse force to the projectile.
  • Recoil System: When the tank fires, it temporarily moves backward (recoilDistance). Speed is gradually restored using speedRampUpRate.

4. Ground Alignment System

  • Uses Physics.Raycast to detect the ground.
  • Adjusts the tank’s height to prevent floating or sinking.
  • Aligns the tank's rotation to match the ground’s normal.

5. Ammo and Health System

  • Ammo Management: Limits the number of projectiles that can be fired. Displayed visually using UI icons.
  • Health System: Tracks tank health and updates a UI health bar. On zero health, the tank is destroyed, triggering an explosion effect and respawning.

6. NPC Waypoint System (Managed by GameManager)

  • The GameManagerTank script keeps track of NPCs using waypoint-based navigation.
  • NPCs move along pre-defined paths.
  • This allows for AI-controlled enemies that patrol or follow strategic movement patterns.
Created with AI

Stable diffusion is used to help texture some of the rock textures etc, 80% of it is hand painted and then stable diffusion is used for the smaller items

Toon Tank Control | System & Framework

(not enough ratings)
$13.99
$19.99
-30%
Taxes/VAT calculated at checkout
License type: Single Entity
Single Entity
Recommended for individuals and small businesses.
Multi Entity
Recommended for large enterprises working across multiple locations.
Refund policy
This asset is covered by the Unity Asset Store Refund Policy. Please see section 2.9.3 of the EULA for details.
Secure checkout:
Supported payment methods: Visa, Mastercard, Maestro, Paypal, Amex
License type
File size
266.0 MB
Latest version
1.0
Latest release date
Mar 7, 2025
Original Unity version
6000.0.24
Quality assets
Over 11,000 five-star assets
Trusted
Rated by 85,000+ customers
Community support
Supported by 100,000+ forum members
Unity logo
Language
Feedback
Partners Program
Partners
USD
EUR
Copyright © 2025 Unity Technologies
All prices are exclusive of tax
USD
EUR