Medieval formation & combat AI system for Unity⚔️ ADVANCED FORMATION & COMBAT SYSTEMUniversal Tactical Battle AI for Any Setting📱 MOBILE / TOUCH INPUTCurrently in development — not included in the current version.The current release is designed for PC/Desktop input. Mobile and touch controls are planned for a future update.Create epic tactical battles with this complete, scalable formation and combat AI system. Designed to work with ANY unit type in ANY setting.🌍 UNIVERSAL UNIT SUPPORTThe system is NOT limited to specific unit types. It supports:• Melee Units: Swordsmen, spearmen, axemen, knights, warriors• Ranged Units: Archers, crossbowmen, slingers, musketeers, spear throwers• Fantasy Units: Mages, spellcasters, magical creatures• Any custom unit type you createThe shooter system works with any ranged unit - simply assign your projectile and configure the settings.🎯 8 FORMATION TYPESLine, Column, Square, Circle, Wedge, Shield Wall, Skirmish, and None. Units maintain their formation while moving and engaging enemies.. Formation spacing is fully configurable.🧠 INTELLIGENT UNIT AI• 13-state AI state machine for realistic behavior• Melee combat: Attack, block, strafe, backstep with configurable cooldowns• Ranged combat: Projectile physics with ballistic trajectories• Units automatically detect enemies, engage, and return to formation• Weighted decision making for varied tactical choices🎮 VISUAL FORMATION HANDLEIntuitive drag handle for rotating formations and setting movement destinations. No complex controls needed.📱 MOBILE / TOUCH INPUT — IN DEVELOPMENTMobile and touch input support is currently in development and is not included in the current version. It will be added in a future update.🔧 FULLY CUSTOMIZABLEAll source code included. Works with any character model, any animation system, any setting.SETTINGS SUPPORTED:• Medieval (knights, archers, swordsmen)• Ancient (legionaries, slingers, spearmen)• Fantasy (mages, creatures, magical units)• Renaissance (musketeers, crossbowmen)• Custom (any unit type you create)Offline single-player only.Key Features:🔹 UNIVERSAL UNIT SUPPORT• Works with ANY unit type: Swordsmen, spearmen, axemen, archers, crossbowmen, slingers, musketeers, spear throwers, mages, and any custom unit• Shooter system supports any ranged unit with custom projectiles• Melee system supports any close-combat unit🔹 8 FORMATION TYPES• Line, Column, Square, Circle, Wedge, Shield Wall, Skirmish, None• Fully configurable spacing• Works with any unit size🔹 INTELLIGENT UNIT AI• 13-state state machine• Melee Combat: Attack, Block, Strafe, Backstep• Ranged Combat: Projectile physics, ballistic trajectories• Weighted decision making• Auto-engage and return to formation• Configurable cooldowns and behavior🔹 FORMATION FACING HANDLE• Visual drag controls for rotation• Click-to-move functionality• Snap-to-angle support• Auto-rotation during movement🔹 SHOOTER SYSTEM• Works with ANY ranged unit type• Customizable projectile spawn point• Ballistic trajectory calculation• Spread and accuracy settings• Animation callbacks for spawn timing🔹 MOBILE / TOUCH INPUT — NOT CURRENTLY SUPPORTED• Mobile and touch controls are currently under development• The current version is designed for PC input• Mobile/touch support will be provided in a future update🔹 PERFORMANCE OPTIMIZED• Coroutine-based updates• Configurable update intervals• Max unit limits• LOD ready🔹 FULL SOURCE CODE• All C# code included• XML documented• No DLLs or black boxes• Easily extendableTechnical Details:• Unity 2022.3 LTS or higher• NavMesh system (built-in)• .NET 4.x runtime• Built-in Render Pipeline• Current target platform: PC/Desktop PLATFORMS: • Windows ✓ • macOS ✓ • Linux ✓ • WebGL — Not specifically tested • Mobile/Touch — In development-----------------------------------------------SYSTEM REQUIREMENTS:• Unity 2019.4 or higher• .NET 4.x runtime• NavMesh system (built-in)PLATFORMS:• Windows ✓• Mac ✓• Linux ✓• WebGL ✓RENDER PIPELINES:• Built-in ✓• Universal Render Pipeline (URP) X• High Definition Render Pipeline (HDRP) XINTEGRATION:• Unity NavMesh ✓• Unity Animator ✓• Unity UI ✓• Any character models ✓• Any projectile prefabs ✓AI Usage DeclarationAI was used only for formatting, comments, and documentation.All core work — core logic, movement, input, mobile touch, debugging, testing, optimization, and feature design — was done entirely by me.




