Builtin Library
README.md
controller.side_scroller
Side-scroller camera controller. Fixed-offset camera that follows a target from the side (classic 2.5D perspective). Maintains a constant position relative to the target and looks slightly ahead.
Public fields: target, centerX, centerY, centerZ (fallback), offsetX, offsetY, offsetZ (camera offset from target), lookAheadX, lookAheadY, lookAheadZ (look-at offset from target).
Controls: none — follows the target automatically.
entity(id).component.add("controller.side_scroller", { target = "player", offsetX = -8, offsetY = 3 })