> For the complete documentation index, see [llms.txt](https://scripting.breeze.rip/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://scripting.breeze.rip/api/functions/renderer.worldtoscreen.md).

# renderer.worldToScreen

> **worldToScreen**(`point`): [`Vec3`](https://scripting.breeze.rip/api/net/minecraft/util/vec3.md)

Projects a world position onto the screen. Returns a Vec3 where x and y are screen pixels and z is the view depth (divide a size by it to scale with distance). Returns null when the point is behind the camera.

### Parameters

#### point

[`Vec3`](https://scripting.breeze.rip/api/net/minecraft/util/vec3.md)

The position in world coordinates.

### Returns

[`Vec3`](https://scripting.breeze.rip/api/net/minecraft/util/vec3.md)

A Vec3 of (screenX, screenY, viewDepth), or null.
