Search Unity

  1. Get all the Unite Berlin 2018 news on the blog.
    Dismiss Notice
  2. Unity 2018.2 has arrived! Read about it here.
    Dismiss Notice
  3. We're looking for your feedback on the platforms you use and how you use them. Let us know!
    Dismiss Notice
  4. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  5. Improve your Unity skills with a certified instructor in a private, interactive classroom. Learn more.
    Dismiss Notice
  6. ARCore is out of developer preview! Read about it here.
    Dismiss Notice
  7. Magic Leap’s Lumin SDK Technical Preview for Unity lets you get started creating content for Magic Leap One™. Find more information on our blog!
    Dismiss Notice
  8. 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 at 4:09 AM.

  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:
    145
    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:
    145
    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:
    407
    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.