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

Camera2DOrbit

A Camera2D’s turn about world up, which the held orbitLeft and orbitRight and a two-finger twist move. Luminati turns continuously at 70 degrees a second within 60 either way of its rest view; Cinemachine’s Orbital Follow keeps a horizontal axis with a range or a wrap, and the engine’s map camera turns at 120 degrees a second. Godot, Unity’s Pixel Perfect Camera and Phaser turn no 2D camera.

Property Type Default value Description
turnRate? number 1.22 Radians a second a held orbit key turns the view, the map camera’s name: Luminati’s 70 degrees.
yawLimitRadians? number Math.PI / 3 Radians the view turns either way from yawRadians, from 0 to π, or Infinity for a full orbit, such as an island’s. Luminati’s 60 degrees. A map’s edge narrows it, so the view never turns past bounds.
yawRadians? number 0 Radians the rest view turns from looking along −z, counter-clockwise seen from above, as three’s rotation.y and camera-controls’ azimuth: where the view starts and what the limit centres on. A new value turns the view back to it.