Updated Frame (markdown)

bi0qaw 2017-11-23 21:09:51 +01:00
parent cdd6c96f7f
commit fb3fa04c07

@ -19,6 +19,27 @@ All the magic happens in lines 3 and 5. In line 3 we grab the frame of the playe
You can see that the circle is still in the "*horizontal*" XZ-plane but the whole coordinate system is rotated. This is basically everything you have to know about frames.
***
## Syntax
```
frame of %entity%
```
Creates a frame from an entities orientation. Returns a frame object.
```
frame with yaw %number% and pitch %number%
```
Creates a frame with a custom yaw and pitch. Returns a frame object.
```
%vectors% in %frame%
```
Converts the vectors from the Minecraft coordinate system to the frame coordinates. Returns a new list of vectors.
***
## When should I use frames?
* When you need the same shape in multiple directions
* When you need to update the direction of a shape over and over again