Skip to content

Pedal Dynamics

Barden edited this page Aug 27, 2026 · 5 revisions

⚡ Pedal Dynamics (Gas & Brake Physics)

🌐 Language / Язык: English | Русский

In real race cars, throttle and brake pedals are analog mechanical systems equipped with springs, progressive rubber bump stops, and hydraulic load cells. On a keyboard, keys are binary (either 100% pressed or 0% released).

vWheel Hub's Schema V2 Pedal Dynamics Engine simulates realistic pedal inertia and progressive modulation using seconds-based two-segment curves (Fast Attack / Slow Attack), decay springs, instant cutoffs, non-linear gamma curves, and dual-key Turbo attack.


⏱️ Schema V2 Physics & Polling Rate Independence

In Schema V2, pedal travel speeds are measured directly in real-world time:

  1. 100% Polling Rate Independence: Whether your Hub Polling Rate is set to 125 Hz, 200 Hz, 400 Hz, 500 Hz, or 1000 Hz, your pedal travel times in seconds remain 100% identical.
  2. Lag-Proof Operation: If a background process causes a frame drop in-game, the pedals will never perform an erratic, instantaneous jump.

🟢 Gas (Throttle) Dynamics

When you press the throttle key, the virtual throttle progresses through two distinct speed stages split at the Gas Threshold:

Pedal Travel (0% to 100%)
[0% ---------------------------- Gas Threshold (e.g. 80%) ------------------------ 100%]
             Primary Segment                                   Secondary Segment
       (Fast Attack Duration: e.g. 0.120s)               (Slow Attack Duration: e.g. 0.250s)
flowchart TD
    A[Gas Key Pressed] --> B{Turbo Mode Active?}
    B -->|Yes: Dual Key Press| C[Apply GasAttackTurbo Rate Directly to 100%]
    B -->|No: Standard Key| D{Throttle < Gas Threshold?}
    D -->|Yes: Initial Bite| E[Advance at Fast Attack Rate]
    D -->|No: High RPM Modulation| F[Advance at Slow Attack Rate]
    G[Gas Key Released] --> H{Brake Simultaneously Pressed?}
    H -->|Yes: Safety Override| I[Instant Throttle Cutoff: Rapid Dump]
    H -->|No: Normal Release| J[Gas Decay Rate: Return Spring to 0%]
Loading

Gas Configuration Parameters:

Parameter UI Unit Default Description & Mechanics
Gas Threshold % 80% (0.80) The percentage split point where throttle progression transitions from Fast Attack to Slow Attack.
Gas Fast Attack Seconds 0.120 s Time in seconds to travel from 0% up to the Gas Threshold. Delivers snappy initial torque out of slow corners.
Gas Slow Attack Seconds 0.250 s Time in seconds to travel from the Gas Threshold to 100% full throttle. Prevents snap power-oversteer when applying power on corner exit.
Gas Attack Turbo Seconds 0.050 s Ultra-fast acceleration time to reach 100% throttle when pressing both Primary and Secondary gas keys simultaneously.
Gas Decay Seconds 0.080 s Time in seconds for throttle to return from 100% to 0% upon key release (simulates mechanical return spring tension).
Gas Instant Cut Seconds 0.020 s Rapid cutoff duration triggered immediately when the Brake key is touched while holding throttle (safety throttle dump).
Gas Gamma Exponent 1.00 Non-linear throttle response curve. Values > 1.0 (e.g. 1.20) provide finer low-RPM modulation.

🔴 Brake Dynamics

Braking is crucial for competitive lap times. The two-segment brake model provides instant straight-line stopping bite while granting precise modulation near the threshold of tire lockup:

Pedal Travel (0% to 100%)
[0% ---------------------------- Brake Threshold (e.g. 90%) ------------------------ 100%]
             Primary Segment                                    Secondary Segment
       (Fast Attack Duration: e.g. 0.080s)                (Slow Attack Duration: e.g. 0.150s)

Brake Configuration Parameters:

Parameter UI Unit Default Description & Mechanics
Brake Threshold % 90% (0.90) The percentage split point where initial hard braking transitions into fine threshold modulation.
Brake Fast Attack Seconds 0.080 s Time in seconds to travel from 0% up to the Brake Threshold. Quickly builds brake line pressure.
Brake Slow Attack Seconds 0.150 s Time in seconds to modulate from Brake Threshold to 100% maximum pressure, giving you time to manage deceleration before lockup.
Brake Decay Seconds 0.060 s Time in seconds for brake pressure to bleed off to 0% when releasing the brake key.
Brake Gamma Exponent 1.00 Non-linear brake progression exponent. Values > 1.0 simulate hydraulic brake pedal firmness.

📊 Seconds-Based UI Tuning

vWheel Hub exposes all segment travel times directly in seconds with millisecond precision (e.g. 0.120 s):

  1. Automatic Threshold Preservation: When you adjust the Gas Threshold or Brake Threshold slider in vWheel Hub, the configured segment times in seconds remain constant, preserving your muscle memory.
  2. Estimated Full Press Times: The UI dynamically calculates and displays the total estimated time required to reach 100% input (Fast Attack + Slow Attack).

🚀 Turbo Pedal Attack (Launch Control & Emergency Braking)

By assigning dual keybindings (e.g. W on keyboard and Left Mouse Button as secondary gas), pressing both keys simultaneously activates Turbo Attack Mode:

  • Turbo Gas: Bypasses the two-stage threshold curve and instantly drives the throttle to 100% at maximum speed (ideal for race starts and launch control).
  • Turbo Brake: Bypasses active Synthetic Trail Braking limits to force 100% emergency straight-line stopping power when you need immediate avoidance braking.

⏭️ Next Steps

Clone this wiki locally