Jump to content

World To Screen: Difference between revisions

m
Reverted edits by Hydraupyt (talk) to last revision by Osmo
(Fixed erro)
Tags: Reverted Mobile edit Mobile web edit
m (Reverted edits by Hydraupyt (talk) to last revision by Osmo)
Tag: Rollback
 
Line 9: Line 9:


Given a world coordinate, outputs its screen coordinates.
Given a world coordinate, outputs its screen coordinates.
For example, if a block is in 0,0,0, depending of the screen position, the World to Screen will transform the block coordinates into the position that the block is viewed in the screen, like it was a 2D block.


== Notes ==
== Notes ==
Line 17: Line 15:


Because of this bug, the script will not function correctly on the first frame. To avoid incorrect values, use the block's output if the [[Current Frame]] is greater than 0.
Because of this bug, the script will not function correctly on the first frame. To avoid incorrect values, use the block's output if the [[Current Frame]] is greater than 0.
{{Block
|image=Current Frame.png
|type=s
|folder=Values
|output1={{Port|n|Current Frame}}
}}


== Related ==
== Related ==