Log inGet started
World

Torque Valley: Driving, Drift and Crash Sandbox

README.md

DriveCam

Switches the camera it sits on between eight car views with one setting, mode: chase, cockpit, hood, bumper, orbit, tv, heli, rear. Attach it to an entity with a Camera (the player prototype's camera rig included). It writes the Camera's behavior to the right rig (the builtin chase, mount or orbital_follow, or this package's TvCam / HeliCam), tunes it for the car (distance from the car's size, mount points from car.mountSeat / car.mountHood / car.mountBumper), sets the field of view, and in chase widens it with speed.

cam.component.add("DriveCam", { mode = "chase", car = myCar })
cam.component.get("DriveCam"):cycle()

With cycleKey on, the cycleCamera control of driveCams.cameraControls (C, right-stick press / d-pad up, a CAM touch button) steps through cycleModes (all eight when empty). Fields: mode, car, cycleKey, cycleModes, speedFov, fovBoost, fovSpeed, orbitSpin, inputMap. Methods: cycle(dir?), setMode(mode), info().