This commit is contained in:
aozhiwei 2022-11-30 13:14:09 +08:00
parent a2d1f9d4a3
commit 77a869c331

View File

@ -37,5 +37,10 @@ void MoveHelper::CalcTargetPos(float distance)
} else {
point.pos = end * 10.f;
}
a8::Vec2 v2;
v2.x = point.pos.x;
v2.y = point.pos.z;
point.distance = v2.Distance(owner_->GetPos());
paths_.push_back(point);
}