Updated Frame (markdown)

bi0qaw 2017-11-25 20:04:08 +01:00
parent 4c13876982
commit 857276a9d2

@ -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:
@ -50,13 +56,3 @@ set {_circle::*} to circle with radius 1 and density 5 # Creates a circle in the
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%
```