minetest.find_path

From Minetest Developer Wiki
Jump to: navigation, search

Syntax

minetest.find_path(pos1, pos2, searchdistance, max_jump, max_drop, algorithm)

Description

Returns table containing path

  • returns a table of 3d points representing a path from pos1 to pos2 or nil
  • pos1: start position
  • pos2: end position
  • searchdistance: number of blocks to search in each direction
  • max_jump: maximum height difference to consider walkable
  • max_drop: maximum height difference to consider droppable
  • algorithm: A*_noprefetch(default), A*, Dijkstra



This article is missing examples, feel free to add them.




This article is incomplete.


Personal tools
Namespaces

Variants
Actions
Navigation
API
Toolbox