From e4aca6a2955fc138d6c2ddb5941b50989ae29568 Mon Sep 17 00:00:00 2001 From: bi0qaw Date: Sat, 25 Nov 2017 15:32:10 +0100 Subject: [PATCH] Created Path (markdown) --- Path.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Path.md diff --git a/Path.md b/Path.md new file mode 100644 index 0000000..36fbf34 --- /dev/null +++ b/Path.md @@ -0,0 +1,27 @@ +## Vectors +``` +vector %vectors% path with density %number% +``` +## Locations +``` +%location% path with density %number% +``` + +Creates lines between the locations or vectors. This is different from [link all](Link-All) because it does not connect all locations/vectors with each other but only connects each location/vector with the next one in the list. + +Example: +``` +set {_poly::*} to polygon with 7 points and radius 10 +set {_path::*} to vector path between {_poly::*} with density 5 +show happy villager at player offset by {_path::*} +``` +![](https://i.imgur.com/cEsw4aT.png) + +Note that the last and first polygon vertices are not connected. If you want to connect them you have to add the first location/vector of the list to the end of the list: +``` +set {_poly::*} to polygon with 7 points and radius 10 +add {_poly::1} to {_poly::*} # add first vector to the end of the list +set {_path::*} to vector path between {_poly::*} with density 5 +show happy villager at player offset by {_path::*} +``` +![](https://i.imgur.com/WmrRtUq.png) \ No newline at end of file