Journal of Intelligent Computing and Health Informatics (JICHI)
Vol 5, No 2 (2024): September

AI-Driven Traffic Simulation using Unity: Implementing Finite State Machines for Adaptive NPC Behaviour

Amalia, Syavira (Unknown)
Abidullah, M. Dzawil Fadhol (Unknown)
Marcellino, Fernanditho (Unknown)
Rabani, Diaz Dafa (Unknown)
Azzahra, Firna Fatima (Unknown)
Abdiansah, Abdiansah (Unknown)



Article Info

Publish Date
30 Sep 2024

Abstract

This research develops an AI-powered traffic simulation using the Unity Engine, leveraging finite state machines (FSM) to enable adaptive and responsive non-player characters (NPCs). The integration of FSM with advanced pathfinding algorithms, such as A*, allows NPCs to dynamically adjust their behavior based on traffic conditions, obstacles, and environmental changes. The experimental results indicate a 25% improvement in route optimization and a 30% reduction in path conflicts compared to conventional static models, demonstrating the robustness of the proposed approach. Optimized navmesh deployment further enhances navigation fluidity, ensuring efficient agent movement in high-density scenarios without compromising system performance. The findings establish the effectiveness of the FSM-driven NPC behavior in simulating realistic traffic environments, contributing both to the advancement of AI applications in game development and urban planning. By providing an interactive platform for traffic management, this simulation offers a practical tool to study congestion patterns and test intervention strategies. In addition, it improves player engagement by fostering emergent gameplay through dynamic NPC interactions. Future work could explore the integration of real-time procedural generation or multiplayer functionality to enrich simulation depth and scalability. This study provides a comprehensive framework that bridges AI-based mechanics with simulation technology, providing significant insights for researchers and practitioners in game design, artificial intelligence, and urban planning.

Copyrights © 2024






Journal Info

Abbrev

ICHI

Publisher

Subject

Computer Science & IT Dentistry Electrical & Electronics Engineering Medicine & Pharmacology Public Health

Description

Journal of Intelligent Computing & Health Informatics (JICHI) was printed in March 2020. JICHI is a scientific review journal publishing that focus on exchanging information relating to intelligent computing and health informatics applied in industry, hospitals, government, and universities. All ...