Rigs of Rods - Vehicle simulator based on soft-body physics
- Posted: Oct 10, 2012 at 6:00 AM
- 6,470 Views
Today's wild Wednesday project is one that's a little hard to characterize yet is just pretty darn cool. Who doesn't want to build trucks, planes, ships, then drive and even crash them?
Rigs of Rods is an open source vehicle simulator licensed under the GNU General Public License version 3. What makes Rigs of Rods different to most simulators is its unique soft-body physics: vehicles, machines, objects, etc. are simulated in real-time as flexible soft-body objects, giving the simulation an extremely accurate behavior which entirely depends on the physical construction of the vehicles or objects you create.
- Soft-body physics. Objects according to their weight distribution, construction, and/or suspension (in the case of vehicles).
- Advanced flight model based on blade element theory. It allows the accurate simulation of any airplane, based entirely on its physical dimensions and wing airfoils, similar to X-Plane.
- Accurate buoyancy model based on elemental pressure gradients, enabling boats with complex hulls to move realistically in the swell.
- Basic support for dual-core processing. More multithreading and CUDA support is planned.
- Basic support for scripting using AngelScript.
- Based on the OGRE Graphics Engine.
What is RoR? (from the Doc/Things you can do in Rigs of Rods.pdf)
Rigs of Rods is a realistic multi-simulator.
Primarily a truck simulator, it can also simulate cars, cranes, airplanes, boats, bridges, and any arbitrary construction.
Vehicles chassis and wheels are simulated in real-time as flexible objects, giving the simulation an extremely accurate behavior, while allowing the vehicles to be simply specified structurally.
Gameplay is emergent and takes place in a virtual 9km² sandbox environment.
Rigs of Rods is a two-year, one man hobby project, still ongoing.
While there's binaries you can get to play with this, it wouldn't be Coding4Fun post if we didn't look at the source behind those binaries.
You can download and compile the Rigs of Rods sources completely with tools that are available for free.
This page does an outstanding job of walking you through getting the tools, source and getting it to compile. Following along I was able to get it to compile with no problems.
Given the size of this project it will take a number of minutes to compile...
If all you want to do is play and build something, make sure you check out the RoR Book which is a very in-depth guide for creating vehicles;
- RoRBook/Introduction What is a truck in RoR. What are beams, nodes and stuff. Also, where to look for errors
- RoRBook/Setup a working environment Requirements for creating trucks: (notepad, setup working environment)
- Land-based Vehicles and Basics
- RoRBook/Basic Truck Requirements - Basic requirements for getting the game to accept a truck.
- RoRBook/First beams and nodes - The basics of creating a truck for RoR.
- RoRBook/Props - A tutorial on how to get a basic prop working on your truck/load.
- RoRBook/Details (exhausts, custom dashboard, etc)
- Objects and Texturing
- Aircraft and Winged Vehicles
- Nautical Vehicles and Boats
- Packaging Guides on how to properly package your vehicle for upload to the repository.