cameraRowsYDown

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

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

NameTypeNotes
rxnumber
rynumber
rznumber

Example

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

See also

  • 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).