Controllers
README.md
controller.isometric
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, andasset.list("component")lists each one under that name.
Isometric camera controller. Fixed-angle overhead camera (classic isometric view). WASD to pan on the XZ plane, scroll to zoom. The viewing angle is fixed (no rotation).
Public fields: inputMap (the camera-rig scheme, cameraRigs.inputMaps.cameraRig, by default; point it at a world's own map to rebind this camera), target (the entity to follow: the entity, its id or its name, kept as an entity reference; unset follows Camera.follow, else pans free), centerX, centerY, centerZ, distance, minDistance, maxDistance, moveSpeed, zoomSpeed, yaw (default pi/4), pitch (default ~35.26 degrees).
Controls: WASD to pan (world-axis-aligned), scroll to zoom.
entity(id).component.add("cameraRigs.isometric", { distance = 12, moveSpeed = 8 })