Updated Frame (markdown)
parent
4c13876982
commit
857276a9d2
18
Frame.md
18
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%
|
||||
```
|
||||
```
|
Loading…
Reference in New Issue
Block a user