Vehicle Dynamics Equations

🧮😎 Perfect choice

Now we switch from illustrative logic to real, textbook vehicle-dynamics equations — the same foundations used in automotive engineering, rally telemetry, and simulation software.

I’ll do this in three clean layers so it’s usable immediately:

  1. Core physics equations (real, standard)
  2. How each equation maps to Ignis vs Jimny
  3. Drop-in JS math upgrades you can plug into your current final source code ⚠️ no UI rewrite, no removal — logic upgrade only

1️⃣ LONGITUDINAL FORCE & ACCELERATION (REAL)

🔹 Tractive force at wheels

Fdrive = Te · G · η / rw

Where:

  • Te = engine torque (Nm)
  • G = total gear ratio (gear × final drive)
  • η = drivetrain efficiency (≈ 0.85–0.92)
  • rw = wheel radius (m)

🔹 Vehicle acceleration

a = (Fdrive - Fres) / m

🔹 Resistive forces

Fres = Froll + Faero + Fgrade

2️⃣ RESISTIVE FORCES (THIS IS THE IMPORTANT PART)

🔹 Rolling resistance

Froll = Crr · m · g

Typical values:

  • Asphalt: 0.010–0.015
  • Gravel: 0.02
  • Mud: 0.04–0.06

🔹 Aerodynamic drag

Faero = ½ ρ Cd A v²

Where:

  • ρ = air density ≈ 1.225 kg/m³
  • Cd ≈ 0.32 (Ignis), 0.45 (Jimny)
  • A = frontal area (m²)
  • v = speed (m/s)

➡️ Why Jimny is slower at high speed.

🔹 Grade (hill) resistance

Fgrade = m · g · sin(θ)

This is why slope kills Ignis.


3️⃣ TRACTION LIMIT (THE OFF-ROAD KINGMAKER)

🔹 Maximum usable force

Fmax = μ · N
N = m · g · cos(θ)

Where:

  • μ = friction coefficient

Asphalt ≈ 0.9; Gravel ≈ 0.6; Mud ≈ 0.3; Rock ≈ 1.1

➡️ Jimny benefits because 4WD increases usable μ distribution, not engine power.

🔹 Final usable force

Fusable = min(Fdrive, Fmax)

This is the wheel-slip threshold.


4️⃣ DOWNHILL BRAKING (REAL STABILITY MODEL)

🔹 Required braking force

Fbrake = m · g · sin(θ)

🔹 Engine braking contribution

Fengine = (Tengine · G) / rw

Jimny has:

  • Lower gear ratios
  • Higher compression braking
  • Better torque multiplication

➡️ Less brake fade.


5️⃣ G-FORCE (REAL, NOT RANDOM)

🔹 Longitudinal G

Gx = ax / g

🔹 Lateral G

Gy = v² / (r · g)

Where: r = turn radius (m)


6️⃣ TORQUE × RPM → POWER (REAL RELATION)

P(kW) = (T(Nm) · RPM) / 9549

This lets you:

  • Show power band
  • Explain gear shifting
  • Compare hill vs highway behavior

7️⃣ DROP-IN JS UPGRADE (REAL PHYSICS CORE)

You can replace ONLY the math functions in your current code with this 👇

<script>

const g = 9.81;

const rho = 1.225;

function aeroDrag(Cd, A, v) {

  return 0.5 * rho * Cd * A * v * v;

}

function rollingResistance(Crr, m) {

  return Crr * m * g;

}

function gradeResistance(m, angleDeg) {

  return m * g * Math.sin(angleDeg * Math.PI / 180);

}

function driveForce(torque, gear, finalDrive, eff, wheelR) {

  return (torque * gear * finalDrive * eff) / wheelR;

}

function tractionLimit(mu, m, angleDeg) {

  return mu * m * g * Math.cos(angleDeg * Math.PI / 180);

}

// Example vehicle configs

const Ignis = {

  mass: 895,

  Cd: 0.32,

  A: 2.1,

  mu: 0.6,

  gear: 3.6,

  finalDrive: 4.3,

  eff: 0.9,

  wheelR: 0.29

};

const Jimny = {

  mass: 1090,

  Cd: 0.45,

  A: 2.3,

  mu: 0.85,

  gear: 4.1,

  finalDrive: 4.3,

  eff: 0.88,

  wheelR: 0.32

};

</script>

This instantly makes:

  • Hill climb physically correct
  • Acceleration mass-accurate
  • Slip realistic
  • Jimny's advantage mathematically provable

🧠 WHY THIS MATTERS

With these equations:

  • Ignis loses on slopes due to μ·N, not power
  • Jimny wins off-road due to gear × traction
  • High-speed losses are aero-dominated
  • Braking stability is gravity-controlled

This is first-principles physics, not a game model.


🔥 NEXT (OPTIONAL, TRUE FINAL FORM)

If you want, next upgrades can include:

  • real gear-by-gear acceleration curves
  • engine brake torque maps
  • μ-slip curve (Pacejka light)
  • time-based hill climb solver (Euler integration)

Just say it — you're already deep in engineer territory now 🧠🚙

Comments