Builtin Library
README.md
third_person
Third-person camera controller. Orbits behind/above a target entity. Right-click drag to rotate around the target, scroll to zoom. Falls back to a static center if no target.
Public fields: target, centerX, centerY, centerZ, height (vertical offset above target origin), distance, minDistance, maxDistance, sensitivity, zoomSpeed, minPitch, maxPitch, yaw (exposed for parent scripts).
Controls: RMB drag to orbit while nothing else in the world binds the right button, scroll to zoom.
entity(id).component.add("third_person", { target = "player", distance = 5 })