diff --git a/Frame.md b/Frame.md index 0ba0a03..5aacb84 100644 --- a/Frame.md +++ b/Frame.md @@ -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