Guide 1 Docs 2 Reference 3

Function of World

world.path

The points a body walks from from to the block at to, or nil. The game's own search: a step up of one block, falls of fall (3). size is { width, height } (0.6, 1.8); swim goes through water; range (the distance + 16) and budget (2000 nodes) stop a long search, which then gives the part that came closest.

world.path(from: Vec3, to: Vec3, opts: { size: (number | { number })?, swim: boolean?, fall: number?, range: number?, budget: number? }?) → { Vec3 }?

Parameters

fromVec3required
toVec3required
opts{ size: (number | { number })?, swim: boolean?, fall: number?, range: number?, budget: number? }optional

Returns

{ Vec3 }?

Used in