Get camera position: Difference between revisions
Fixed broken link
(Added to a category) |
(Fixed broken link) |
||
Line 1: | Line 1: | ||
Unfortunately, there is no built-in "Get Camera" block. | Unfortunately, there is no built-in "Get Camera" block. | ||
The easiest way to get around that is to save the camera's parameters in [[ | The easiest way to get around that is to save the camera's parameters in [[Variables#Global variables|global variables]] while (or instead of) setting them with Set Camera, then reading from them when needed. | ||
If that's not an option for you (for example, if you're making a custom block for <i>everyone</i> to use), it <i>is</i> possible to calculate the camera's parameters with [[Screen To World]] and some clever math. | If that's not an option for you (for example, if you're making a custom block for <i>everyone</i> to use), it <i>is</i> possible to calculate the camera's parameters with [[Screen To World]] and some clever math. |