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

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.

Authors

Institutions

Publication Details

Journal
Journal of Intelligent Computing & Health Informatics
Published
2024-09-30
DOI
https://doi.org/10.26714/jichi.v5i2.14595
Primary Topic
Simulation Techniques and Applications
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

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

Syavira Amalia, M. Dzawil Fadhol Abidullah, Fernanditho Marcellino, Diaz Dafa Rabani et al.
Journal of Intelligent Computing & Health Informatics
Simulation Techniques and Applications
article

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

Syavira Amalia, M. Dzawil Fadhol Abidullah, Fernanditho Marcellino, Diaz Dafa Rabani, Firna Fatima Azzahra, Abdiansah Abdiansah
article en

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.

Journal of Intelligent Computing & Health InformaticsVol. 5(2)
Sriwijaya University (ID)
Openalex Percentile: Top 78%
Simulation Techniques and Applications
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

AI-Driven Traffic Simulation using Unity: Implementing Finite State Machines for Adaptive NPC Behaviour — Syavira Amalia, M. Dzawil Fadhol Abidullah, et al. · Journal of Intelligent Computing & Health Informatics (2024) | TGRS Research Map | TGRS