๐ Planck Racer Help
โจ Features
- Planck.js vehicle with springy wheel joints, motor/brake torque, and inโair pitch control.
- Procedural terrain (sinusoidal blend) with slope limiting, culling & onโtheโfly generation.
- HUD metrics: Speed (km/h), RPM, Fuel %, Distance (m), Slope %, Angle (ยฐ) & Applied Torque.
- Checkpoints & fuel cans automatically placed on peaks.
- Game states: Pause/Resume, Debug overlay, Game Over on fuel depletion.
- Full input support: Keyboard, Gamepad, and Mobile touch controls.
- Stable physics: 120โฏHz fixed-step simulation with an accumulator.
๐ฎ Controls
| Action | Keyboard | Gamepad | Mobile |
| Throttle | โ | RT (button 7) | Gas |
| Brake | โ | LT (button 6) | Brake |
| Pitch (in air) | โ / โ | Left stick (X) | โ / โบ |
| Pause/Resume | Space | Start (button 9) | โ |
| Reset to Checkpoint | R | โ | โ |
| Toggle Help | H | โ | โ |
| Toggle Debug | D | โ | โ |
Tip: In Debug mode, fuel is held at 100% for testing.
๐งช Dev/Debug Shortcuts
- H โ Toggle this Help panel
- D โ Toggle Debug visuals (joint anchors, different HUD color)
- Space โ Pause/resume the simulation
- R โ Reset to the last checkpoint (spawns slightly above ground)
- Out of bounds (falling too far down) auto-resets the car.
Link to repo: https://github.com/pemmyz/js_climbhill