What it does
camera.getRotation reads Rotation on a camera object. It takes no arguments.
Signature
camera.getRotation()Arguments
It takes none.
Example · generated
function update(dt) { const rotation = camera.getRotation();}camera.getRotation is called with values of the shape its signature asks for. The code sits in update(dt), which the engine calls every frame: dt is the time since the last one, in seconds.