Log inGet started
World

Controllers

README.md

controller.side_scroller

In a world that installs the Controllers library (world.installLibrary({ world = "034d26cf-dc3d-4123-abad-3944f97c6a60", as = "controllers" })), every package name on this page is written with @controllers:: in front of it, and asset.list("component") lists each one under that name.

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("cameraRigs.side_scroller", { target = "player", offsetX = -8, offsetY = 3 })