Truck Controller : Model & Manual Gearbox Physics
Drive a heavy truck the way it should feel. A complete, ready-to-use truck package: a realistic 3D truck model together with a full driving system that has a manual gearbox, clutch, brakes, audio system, and a working dashboard. Drop the prefab into your scene, press Play and drive.
What’s included
- Realistic truck model with separate wheels, steering wheel, dashboard needles, wipers and lights.
- Truck Controller script for WheelCollider-based physics, tuned for a heavy vehicle.
- Ready-to-use prefab with everything attached and assigned.
- Demo scene to test the truck immediately.
- Full documentation and a controls reference image.
Key features
Realistic driving physics
- Front-wheel steering with smooth steering input
- Rear-wheel drive with 2 or 4 driven rear wheels (extra rear wheel pair is optional)
- Torque shared across all rear wheels, with an engine RPM limiter
- Brake system with a nose-dive effect (suspension changes while braking)
- Adjustable centre of mass for stability
Manual gearbox with clutch
- 5 forward gears and reverse, with a customizable ratio and maximum speed for each gear
- Clutch input, gear selection and neutral
- Reverse / Drive / Neutral selector with UI buttons that change colour
- Engine start sequence (press E)
Realistic audio system
- Engine start, idle and driving loops that cross-fade smoothly
- Engine pitch that follows the RPM
- Brake , horn with fade-out, reverse beeper and indicator tick
Lights, dashboard and details
- Left and right turn signals with blinking emission
- Blinking parking light
- Working wipers
- Speedometer and RPM needles with smoothing, plus speed and gear display
- Pause menu and controls menu hooks for your UI
Controls
- Keyboard: W / A / D, Space for brake, Shift for clutch, Shift + 1-5 for gears
- Steering wheel and pedal support through the Input Manager (throttle, steering, brake, clutch axes and wheel buttons)
- Camera pivot rotation
Easy to customize
- Clean, commented code in the HunterCraft_Creations namespace
Technical details
- Unity version: Unity 6 or newer
- Input: Unity Input Manager (old input system or Both)
- Requires: TextMeshPro, Unity UI
- Render pipeline: URP
- Scripts: truck_, Switches, indicators
- Wheel colliders: 4 minimum, 6 supported