Search Unity

Adding Wheel Colliders on a train?

Discussion in 'Physics' started by AWVREngineer, Aug 12, 2018.

  1. AWVREngineer

    AWVREngineer

    Joined:
    Aug 6, 2018
    Posts:
    6
    So, in Unity, Wheel Colliders are primarily used in car/racing games. But, how do you make Wheel Colliders work on a train? This goes for both driving and braking. Any help and suggestions would be much appreciated. Thanks!
     
  2. BoogieD

    BoogieD

    Joined:
    Jun 8, 2016
    Posts:
    236
    Probably best not to use the physics engine to simulate a flanged wheel.
     
  3. AWVREngineer

    AWVREngineer

    Joined:
    Aug 6, 2018
    Posts:
    6
    I want my game to use real train physics. If not the physics engine, any idea on how I should go upon doing collision?
     
  4. BoogieD

    BoogieD

    Joined:
    Jun 8, 2016
    Posts:
    236
    Use bezier curves and apply your own physics calculations. Wheel colliders are for suspension and wheel slip. Not that relevant to a flanged wheel on a rail.
     
  5. Antypodish

    Antypodish

    Joined:
    Apr 29, 2014
    Posts:
    10,769
    You train wont need to travel on the rough ground like offload truck.
    Therefore, train simulation do not requires wheel physics. You wont need suspension. And if you really want some "shaking", you can really script it in many ways.
    Trying apply right physics to many wheels, will make you more headache.