Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8121997
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T05:41:30+00:00 2026-06-06T05:41:30+00:00

I think it would be fun to model a top view of a train

  • 0

I think it would be fun to model a top view of a train following a track, traversing switches and so on, using a physics library like Box2D. What joints and motors would I need to make this work?

I’m curious about how to implement the forces needed to make the car follow a spline track so it can bump into other train cars, pedestrians, DeLoreans etc. Just saying “the car is now at spline(t)” for each time step would create excessive forces in the physics engine. If I understand correctly, you have to stick the car onto the track with one force, constrain its angle to tend towards parallel with the track with another (or stick the front and back of the car to the track with two forces), and create another force to propel the train forward. I’m looking for some details on how to accomplish these things.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T05:41:31+00:00Added an answer on June 6, 2026 at 5:41 am

    For 2D top-down view of a train using a physics engine sounds like serious overkill. The only noticeable effect you’ll be seeing from using physics is how individual cars bump into one another as they accelerate or slow down. These forces could easily cause hard to balance effects on the whole train, making it jump, jitter or possibly derail (or, if you force them onto the track no matter what, cars most certainly will not observe the laws of physics).

    The joints from car to car are designed to keep them at a fixed distance, and there’s really very little room for cars in a train to move back and forth compared to the overall length of a train. To make a 2D top-down view of a train mostly realistic, you really only need to model these car-to-car interactions as the train accelerates or stops. And that IMHO is better done without a physics engine since it’s just a matter of delayed acceleration with a min-max distance threshold of how close or far the cars can be from one another.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I think it would be fun to model a top view of a train
The following code is an example of what I think would qualify as pseudocode,
I would like to learn how to write device drivers because I think it
I am struggling trying to perform what I would think would be a relatively
So I have this idea for a RubyGem that I think would be an
You would think that launching a bat file from Java would be an easy
I think it would be easier to use function pointers if I created a
So you think it would be easy to find a direct example of POST
I could never think it would be even challenging but is there any function
My problem is one that you would think is quite common, but I haven't

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.