World To Screen: Difference between revisions

m (Use infobox)
(Added link to Screen size)
 
(One intermediate revision by one other user not shown)
Line 14: Line 14:
Due to a technical issue, still to be fixed, the output lags by one frame. I.e. if you [[Set Camera]] on frame N, then this block's output will change on frame N+1.
Due to a technical issue, still to be fixed, the output lags by one frame. I.e. if you [[Set Camera]] on frame N, then this block's output will change on frame N+1.


Because of this bug, the script will not work 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.
 
== Related ==
 
* [[Screen To World]]
* [[Screen Size]]


[[Category:Blocks]]
[[Category:Blocks]]

Latest revision as of 12:48, 27 May 2024

Given a world coordinate, outputs its screen coordinates.

World To Screen
World To Screen.png
TypeScript block
ColliderNone
FolderMath
Ports
Inputs World Pos
Outputs Screen X
Screen Y

Notes

Due to a technical issue, still to be fixed, the output lags by one frame. I.e. if you Set Camera on frame N, then this block's output will change on frame N+1.

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.

Related