# sm.render.getScreenCoordinatesFromWorldPosition

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

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
sm.render.getScreenCoordinatesFromWorldPosition( pos, width, height )
```

[Open the full Game reference](../Game-Script-Environment/Static-Functions/sm.render.md#getscreencoordinatesfromworldposition)

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `pos` | [Vec3](../Game-Script-Environment/Userdata/Vec3.md) | World position to align |
| `width` | integer | Screen width |
| `height` | integer | Screen height |

**Returns:**

| Type | Description |
| --- | --- |
| number<br>number | The x and y screen coordinates. |
