Need a (very) little help with 3D A* Pathfinding

Blitz3D Forums/Blitz3D Programming/Need a (very) little help with 3D A* Pathfinding

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

It seems you try to get the real distance (taking into account the greater distance in diagonals).
Why don't you get the real distance from the very beginning then?
That is, replacing getManhattan by
Function getRealDist(this.tile, where.coord)
	mX = this\x - where\x
	mY = this\y - where\y
	mZ = this\z - where\z
	Return Sqr(mx*mx + my*my + mz*mz)
End Function
I confess I have not looked deeply at your code, but I guess that's what you want to achieve.
NB: I also removed this " * 1 " (!?!)