Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Question How do I simulate many differential gear?

Discussion in 'Physics' started by driftnumata, Aug 29, 2023.

  1. driftnumata

    driftnumata

    Joined:
    May 31, 2023
    Posts:
    29
    Hello, I'm trying to simulate car physics and I wanna simulate many things but, I don't know how I simulate differential gear. Please help me. ( Forexample, I wanna simulate LSD, Lock)
     
  2. Edy

    Edy

    Joined:
    Jun 3, 2010
    Posts:
    2,439
    That utterly depends on the design of your car dynamics simulation, so implementations may vary greatly.

    An open differential splits the torque 50-50 to each wheel, so this calculation is easy. For example, here's the implementation of an open differential in Vehicle Physics Pro:

    https://vehiclephysics.com/advanced/custom-blocks/#example-simple-differential

    Other differential types also establish a "connection" between the wheels depending on different conditions:
    • The locked differential enforces both wheels to rotate at the same exact angular velocity, independently of the input torque.
    • The LSD differential can be simulated as a "clutch" between both wheels, where the locking torque of the clutch depends on the torque at the input of the differential.
    • In torque-bias differentials (i.e. Torsen) the input torque is biased among outputs proportionally to the output with less resistance.
    Again, the specific implementation depends on the design of your dynamics simulation. Some designs solve the equations of the entire powertrain as a whole (as in the popular car physics article from Marco Monster), while others implement a modular approach where each part is solved individually (as in Vehicle Physics Pro).
     
    driftnumata likes this.
  3. driftnumata

    driftnumata

    Joined:
    May 31, 2023
    Posts:
    29
    Thank you! I'm gonna try this