Torque Valley: Driving, Drift and Crash Sandbox
README.md
TvCam
A trackside TV camera behaviour for a car: set it as a Camera's behavior
(or use DriveCam's tv mode) with Camera.follow on the car. The camera
stands at the best trackside point near the car (entities named
TvCamPoint, the entities in points, or points it places itself ahead of
the car along its path, alternating sides, set pointHeight above the
ground), pans to keep the car framed, zooms so the car fills the same share
of the picture near and far (frameSize, minFov, maxFov), and cuts to the
next point once the car has passed (minHold seconds at least). It follows
where the car is drawn.
local camera = cam.component.get("Camera")
camera.behavior = asset.ref("driveCams.TvCam", "component")
camera.follow = car
Fields: follow, points, autoPlace, range, pointHeight,
sideOffset, leadTime, frameSize, minFov, maxFov, minHold.
Methods: info() (cuts made, points known), resetPoints().