Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NavTileHandle GoalDistanceEstimate 函数写的不对 #1588

Open
QiuleiWang opened this issue Jun 14, 2023 · 0 comments
Open

NavTileHandle GoalDistanceEstimate 函数写的不对 #1588

QiuleiWang opened this issue Jun 14, 2023 · 0 comments

Comments

@QiuleiWang
Copy link

float NavTileHandle::MapSearchNode::GoalDistanceEstimate(MapSearchNode &nodeGoal)
{
float xd = float(((float)x - (float)nodeGoal.x));
float yd = float(((float)y - (float)nodeGoal.y));
//源代码没加绝对值
return abs(xd) + abs(yd);
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant