Search Unity

  1. Improved Prefab workflow (includes Nested Prefabs!), 2D isometric Tilemap and more! Get the 2018.3 Beta now.
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. Let us know a bit about your interests, and if you'd like to become more directly involved. Take our survey!
    Dismiss Notice
  4. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice
  5. Want to see the most recent patch releases? Take a peek at the patch release page.
    Dismiss Notice

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:
    179
    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:
    179
    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:
    1,526
    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.