ShotCam.component
README.md
ShotCam
A chase camera for the local player's shooter body. Put it on the entity that carries the player's Camera (a CameraRig under the player prototype, or a scene camera); it needs no other sibling component. It sits high and three-quarter behind the followed body, looks toward a settable target (setTarget(cupPosition), or the lookAt entity), follows with exponential smoothing, eases out while the player aims a FlickShot (aimEaseOut), sweeps between turns with flyTo(target, duration, look?, hold?), and blends its field of view from fovLandscape to fovPortrait as the view turns upright. In multiplayer it drives only a camera this peer owns. Fields: follow, lookAt, target, hasTarget, yaw, distance, height, lookAhead, aimEaseOut, followSharpness, fovLandscape, fovPortrait, flyLift, aiming, localOnly. Methods: setTarget, setFollow, flyTo, isFlying, release, snap, goal. The maths lives in flickShot.shotCam.