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.

屏幕截图 2026 03 01 150916
67d39800 7367 40ad b286 919b9714db90 rw 600

Running Test 运行效果图片

fa043f06 c788 475e 82e2 6f2296b11782 rw 600

More 更多