From 857276a9d2ad648f983b4af5cb0d980233e5c19d Mon Sep 17 00:00:00 2001 From: bi0qaw Date: Sat, 25 Nov 2017 20:04:08 +0100 Subject: [PATCH] Updated Frame (markdown) --- Frame.md | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/Frame.md b/Frame.md index 5901510..571f2ae 100644 --- a/Frame.md +++ b/Frame.md @@ -13,6 +13,12 @@ Creates a frame with a custom yaw and pitch. Returns a frame object. ``` Converts the vectors from the Minecraft coordinate system to the frame coordinates. Returns a new list of vectors. +``` +frame yaw of %frame% +frame pitch of %frame% +``` +Yaw and pitch of a frame. + *** Frames are used whenever you want to change the direction of a bunch of vectors. Instead of rotating the list of vectors you can just grab a frame and let it do the correct rotations. This is best shown with a small example: @@ -49,14 +55,4 @@ Note that frames do not completely replace rotations. I tend to use rotations du set {_circle::*} to circle with radius 1 and density 5 # Creates a circle in the horizontal XZ-plane set {_circle::*} to {_circle::*} rotated around z-axis by 90 # Rotate the circle to a vertical position show happy villager at location 1 above player's head offset by {_circle::*} in frame of player # show the particles -``` - -*** - -## Yaw & Pitch -You can always get/change the yaw and pitch of a frame with the `frame yaw` expression: - -``` -frame yaw of %frame% -frame pitch of %frame% -``` +``` \ No newline at end of file