Torque Valley: Driving, Drift and Crash Sandbox
README.md
driveCams.cams
The car camera family as functions. modes() lists the eight modes;
set(camera, mode, car?) switches a camera (through its DriveCam when it has
one, so it sticks); cycle(camera, dir?) steps to the next; apply puts a
mode's behaviour, tuning and FOV on a camera now; tune re-tunes the running
rig; mounts(car) answers the cockpit / hood / bumper / rear points in
chassis-local metres (from the car's car.mountSeat / car.mountHood /
car.mountBumper values, else from car.size, its BoxCollider or bounds);
speedOf(car), carOf(id), behaviorOf(mode) and mainCamera() are
exported too. Used by DriveCam; call it from game code to switch views.