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


Mbox information.png This article is missing examples.
Feel free to add them.
Mbox important.png This article is incomplete.
Please help expand this article to include more useful information.
Personal tools
Namespaces

Variants
Actions
Navigation
API
Toolbox