CARPOOLING SIMULATOR - 打车软件模拟器
这是一个面向 WKU 学生的拼车系统。为了进一步优化该应用,我使用 Unity 和 C# 开发了一个APP叫车与精准路径计算的模拟器。该模拟器能够实时获取用户发布的行程订单,显示行程的起点位置,计算最短行驶路线,并模拟出租车的行驶过程。此外,用户还可以通过点击操作,自定义并模拟不同的行程起点,从而更直观地体验车辆路径导航的过程。
This is a carpooling system for WKU students. To improve this application, I utilized Unity and C# to create a simulator for online ride booking and accurate route calculation. This simulator can instantly access user-generated trip orders, display the trip’s starting point, calculate the shortest route, and simulate the taxi’s journey. Users can also simulate trip starting points with a click.
A* Pathfinding Algorithm A星寻路算法
我采用 A* 寻路算法来计算用户自定义起点与终点之间的最短路径。鉴于 A* 算法在电子游戏角色导航中被广泛应用,我将其引入到我们的拼车应用中进行实现。程序通过 A* 算法在存在障碍物的网格环境中进行路径搜索,使对象能够从起始节点高效移动至目标节点。下图展示整个Demo实现的代码结构。
I utilized the A* pathfinding algorithm to determine the shortest route between user-defined starting and ending points. Given the A* algorithm commonly seen in video game character navigation, I chose to implement it in our carpooling application. The program leverages the A* algorithm to navigate objects around obstacles, moving from the starting to the target grid node.
Running Test 运行效果图片