Description
If you want to make your enemy tank intelligence, this package help you to do it easily!
Ai system has five phases consist of Idle, patrol, seek, investigate and shoot.
Idle mode is optional and you be able to set the movement boolean to true or false in inspector or via code.
After idle mode tanks go to patrol mode and If the player exist in the scene , it will start to seek to find it. If player to be in pre difined range, enemy tank turret will face to player and then start to shoot. After player destroyed , enemy tank goes to patrol mode again.
Patrolling is based on waypoint system and waypoint group prefab will help you to draw visualize waypoints in the scene by drag and drop waypoint group prefab into scene.
You can enable or disable proper functions to controll turret or barrel in the code based on your tank model. another feature of gun system is to define rotation angle limitation for turret or barrel! Also turret rotation speed and barrel ratation speed can be adjst in inspector.
Barrel has recoil system to shoot bullet realistic with adjustable parameters like “recoil backward speed” and “recoil forward speed”.
Enemy tank script has bunch of parameters to adjust functionality of enemy tank based on your tank style and game style.
Script optimized fo mobile devices so rotation of wheels perform without wheel collider! Wherease Enemy tank can move to slope smoothly and rotation of wheels perform via code.
Another feature to increase performance for mobile devices is layer mask.To do this just define a layer for player and select the layer in inspector “Raycast Mask ” slot.
Other feature is handling player health. you can modify maximum player health based on your need.
Many of parameters such as firing rate, bullet speed, movement speed, turret rotation speed, barrel rotation speed, turret degree limitation,barrel degree limitation, turret rotation reset speed,
Barrel rotation reset speed, minimum distance to investigate, delay between shoot are adjustable.
Scripts are clean and well organized and variables names are understandable.
Package contains
Models
Lowpoly cartoon tank with seperated chassis, tracks,turret,barrel and door. The door can be open and close, it is usefull if you want to have a machine gunner to make your game very funny.
Lowpoly tank bullet
Sprites
Health bar sprite
Prefabs
Player Tank, Enemy Tank, Bullet and Waypoint Group
Scene
Sample Scene
Scripts
Cartoon Enemy Tank AI Controller
Player Health Controller
Bullet
Waypoint Gizmo
Bullet
Sound
Cartoon Explosion
Cartoon Shoot
If you have any question or need further information about this asset don’t hesitate to contact us!
Reviews
There are no reviews yet.