Updated Frame (markdown)
parent
4c13876982
commit
857276a9d2
16
Frame.md
16
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.
|
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:
|
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
|
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
|
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