Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

setCamera2DYaw

setCamera2DYaw(writer, yawRadians): void

Turns the current Camera2D to yawRadians, as a cutscene or a saved view does; the aim holds it inside the orbit’s limit and the map’s edge, as it holds the player’s turn. A Camera2D with no orbit keeps its yaw of 0.

Parameter Type
writer ViewWriter
yawRadians number

void