fix 钻车结束速度不降到0的Bug

This commit is contained in:
shuai.li
2026-07-03 13:32:26 +08:00
parent dadbcc76f0
commit fc7c8e243b
2 changed files with 15 additions and 4 deletions
+6 -1
View File
@@ -152,7 +152,7 @@ namespace MultiWheelC
}
//离车一定是后雷达识别一个轮胎
public void LeaveCar(int srcId, int dstId)
public void LeaveCar(int srcId, float srcX, float srcY, int dstId, float dstX, float dstY)
{
while (!TryLock(dstId))
{
@@ -192,6 +192,11 @@ namespace MultiWheelC
};
var _dt = new DriveTask(following.Get());
_dt.Wait();
new DriveTask(new DstTracker()
{
Src = new Vector2(srcX, srcY),
Dst = new Vector2(dstX, dstY),
}.Get()); Wait();
DLog.Log("钻车动作结束", "TireFollowing");
}