Beispiel #1
0
 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]);
 }
Beispiel #2
0
 public virtual bool PassFilter(NavPolyId polyId, NavTile tile, NavPoly poly)
 {
     return(true);
 }