---
title: "cameraRowsYDown"
description: "The three rows of a camera rotation for a 3D view drawn on a y-down canvas."
group: "simulation"
groupTitle: "Simulation"
categoryId: "sim.agentFrame"
categorySlug: "sim-agentframe"
categoryTitle: "Agent frame"
kind: "function"
sourceUrl: "https://github.com/shader-effects-inc/shaders/blob/main/packages/core/src/std/sim/agentFrame.ts#L233"
---

# cameraRowsYDown

The three rows of a camera rotation for a 3D view drawn on a y-down canvas.

```ts
cameraRowsYDown(rx: number, ry: number, rz: number): {
    rowX: [number, number, number]
    rowY: [number, number, number]
    rowZ: [number, number, number]
}
```

Import `sim` from `shaders/std` and use `sim.agentFrame.cameraRowsYDown`.

Angles in radians. Write them into the values a projected splat reads.

Positive angles orbit in the directions that feel natural in the editor.

## Parameters

| Name | Type | Notes |
|---|---|---|
| `rx` | `number` |  |
| `ry` | `number` |  |
| `rz` | `number` |  |

## Example

```ts
const rows = agentFrame.cameraRowsYDown(rotX * DEG_TO_RAD, rotY * DEG_TO_RAD, rotZ * DEG_TO_RAD)
```

## See also

- [`renderAgents`](/docs/primitives/sim-agents/renderagents) — How the agents are drawn, as one declared part: a splat (each agent stamps its shape into a shared canvas) paired with the matching resolve (the canvas becomes the output picture).