Re:Show HN: Simple 2D car physics with JavaScript
by vsskanth on Wednesday January 01, 2020 @10:46AM
(#21928446)
I work as a vehicle simulation engineer for a Motorsports team.
What you're looking for is broadly classified as Multibody Dynamics. You can model each part individually and connect them to make a complete simulation. There are two parts to building these types of models:
1. IDE and Language - Modelica, ADAMS, Project Chrono, SimScape etc. There are open source and commercial solutions for this.
2. Libraries - Claytex, Modelon etc. most detailed vehicle models and components are sold separately. These are typically written in Modelica. Some IDEs like MapleSim or Mathworks bundle it in their IDE.
You can build your own components from scratch but it takes time.
What you're looking for is broadly classified as Multibody Dynamics. You can model each part individually and connect them to make a complete simulation. There are two parts to building these types of models:
1. IDE and Language - Modelica, ADAMS, Project Chrono, SimScape etc. There are open source and commercial solutions for this.
2. Libraries - Claytex, Modelon etc. most detailed vehicle models and components are sold separately. These are typically written in Modelica. Some IDEs like MapleSim or Mathworks bundle it in their IDE.
You can build your own components from scratch but it takes time.
The closest to open source I found is: https://sbel.wisc.edu/2018/07/23/chronovehicle-template-base...
https://github.com/projectchrono/chrono
If you want to learn how to do it properly, you can easily find online versions of this book: https://www.elsevier.com/books/the-multibody-systems-approac...