sm.render.getScreenCoordinatesFromWorldPosition

Return the screen coordinates that align with the given world position.

Kind: Function

Environments: Game

Game

sm.render.getScreenCoordinatesFromWorldPosition( pos, width, height )

Open the full Game reference

Parameters:

Name Type Description
pos Vec3 World position to align
width integer Screen width
height integer Screen height

Returns:

Type Description
number
number
The x and y screen coordinates.