Drag Timer
Precision timing controller for drag racing. Measures elapsed time and trap speed over standard drag racing distances (60ft, 330ft, 660ft, 1000ft, 1/4 mile, 1/2 mile). Integrates with the UI to display live timing data.
Precision timing controller for drag racing. Measures elapsed time and trap speed over standard drag racing distances (60ft, 330ft, 660ft, 1000ft, 1/4 mile, 1/2 mile). Integrates with the UI to display live timing data.
Hooks
| Hook | Description |
|---|---|
init(jbeamData) | Resets timers and split records. |
update(dt) | Main logic state machine. Transitions from ready to countdown when transbrake and throttle are engaged, then manages split measurement (60ft, 1/8mi, 1/4mi). |
updateGFX(dt) | Placeholder for future visual updates. |
Usage Example
-- Start/reset the drag timer
controller.getController("dragTimer").resetTimer()See Also
- Two Step Launch — Launch control RPM limiter
- Line Lock — Brake line locking for burnouts
- Transbrake — Transbrake launch system
Control Modes
Manages multiple input mapping profiles that change how physical controls are interpreted. Each mode can remap, scale, and smooth input axes differently — useful for vehicles with multiple operating modes (e.g., crane vs. drive mode on utility vehicles).
Drive Modes
Manages vehicle-wide driving profiles (e.g., Comfort, Sport, Eco) that simultaneously adjust multiple systems including engine response, transmission behavior, steering weight, exhaust sound, and suspension stiffness. Provides a unified interface for switching between pre-configured vehicle personalities.