From b45fe6fc73f1b6e631904aad4cf98c3519c7eddb Mon Sep 17 00:00:00 2001 From: bi0qaw Date: Sat, 25 Nov 2017 15:01:16 +0100 Subject: [PATCH] Created Offset (markdown) --- Offset.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Offset.md diff --git a/Offset.md b/Offset.md new file mode 100644 index 0000000..72950c0 --- /dev/null +++ b/Offset.md @@ -0,0 +1,27 @@ +## Vectors +``` +vectors %vectors% offset by %vectors% +``` + +## Locations +``` +%locations% offset by %vectors% +``` + +Adds each offset to all locations or vectors. You will usually use this to move some vectors to a location. Example: +``` +set {_vector-circle::*} to circle with radius 5 and density 5 #creates a circle +set {_location-circle::*} to location at player offset by {_vector-circle::*} #gives the locations in the shape of the circle around the player +``` + +You can also chain this expression for more complicated things like: +``` +set {_cube::*} to cube with radius 5 #creates a cube +set {_circle::*} to circle with radius 2 and density 5 #creates a circle +set {_cube-circles::*} to {_cube::*} offset by {_circle::*} #creates a circle at each vertice of the cube +show happy villager at player offset by {_cube-circles::*} +``` +Which gives you green particles in the shape of 8 circles at the cube vertices as can be seen in the following image: +![](https://i.imgur.com/8A10DmU.png) + +