World To Screen: Difference between revisions
-u ndefined- (talk | contribs) m (Use infobox) |
-u ndefined- (talk | contribs) m (Add related section, minor rewording) |
||
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 | 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]] | |||
[[Category:Blocks]] | [[Category:Blocks]] |
Revision as of 04:31, 21 May 2024
World To Screen
Type | Script block |
Collider | None |
Folder | Math |
Ports | |
---|---|
Inputs | World Pos |
Outputs | Screen X Screen Y |
Given a world coordinate, outputs its screen coordinates.
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.