Search Unity

  1. Unity 2018.3 is now released.
    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. We've updated our Terms of Service. Please read our blog post from Unity CTO and Co-Founder Joachim Ante here
    Dismiss Notice
  4. Want to provide direct feedback to the Unity team? Join the Unity Advisory Panel.
    Dismiss Notice
  5. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    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:
    202
    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:
    202
    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:
    3,231
    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.