public virtual float GetCost(Vector3 a, Vector3 b, NavPolyId prevRef, NavTile prevTile, NavPoly prevPoly, NavPolyId curRef, NavTile curTile, NavPoly curPoly, NavPolyId nextRef, NavTile nextTile, NavPoly nextPoly) { return((a - b).Length() * areaCost[(int)curPoly.Area.Id]); }
public virtual bool PassFilter(NavPolyId polyId, NavTile tile, NavPoly poly) { return(true); }