跳到正文
DEV Community· dev game·· 2 天前AI 評分36

BeamNG.drive 為何選擇 Torque 3D 與 Soft-Body JBeam:支撐 11 年 Early Access 的碰撞實驗室技術

Why BeamNG.drive Bet on Torque 3D and Soft-Body JBeam: The Crash-Lab Tech Behind an 11-Year Early Access

AI 導讀

BeamNG.drive 選用經大幅修改的 Torque 3D,並加入自家的軟體車輛求解器,以此構建遊戲的碰撞模擬。Torque 3D 負責渲染和遊戲世界,車輛則以 JBeam 文字檔定義節點與樑,Lua 負責遊戲邏輯。BeamNG.tech 亦提供駕駛訓練和自動駕駛測試用途。

正文

BeamNG.drive runs on a heavily modified fork of Torque 3D, not Unreal or Unity, with its own soft-body vehicle solver on top. Cars are live node-beam skeletons defined in text JBeam files, simulated with Lua-heavy game logic in real time.

That boring-sounding choice explains the whole product: visceral crashes, an 11-year Early Access, text-file modding, and a second business selling the same crash math to car companies.

The bet in one paragraph

Bremen-based BeamNG GmbH started from Rigs of Rods, the 2005 open-source OGRE truck sim built by Pierre-Michel Ricordel and Thomas Fischer. In 2011 a group of Rigs developers gathered to make a proprietary successor, opened beamng.com on May 8, 2012, and posted a CryEngine 3 deformation video on May 29, 2012 that passed one million views overnight, according to BeamNG's communications manager. Then they walked away from CryEngine 3. Licensing costs among other issues pushed them to a modified version of open-source Torque 3D, the GarageGames engine that began life as Dynamix tech for Tribes 2 in 2001 and was released under the MIT License on September 20, 2012.

From there the timeline is stubborn: free tech demo August 3, 2013, Steam Greenlight February 12, 2014 and greenlit eight days later, Steam Early Access May 29, 2015, experimental Linux support with version 0.25 in June 2022 after dropping 32-bit in April 2022 when fewer than 0.5% of players still used it, and a PlayStation 5 Early Access listing for October 19, 2026. The game also ships a research fork, BeamNG.tech, for driver training and autonomous-driving testing.

If you ask what-engine-is-BeamNG questions on Google and Bing, you get exactly this confusion: Torque? CryEngine? Custom JBeam? Lua? The answer is all three layered: Torque 3D for rendering and world, custom soft-body solver for vehicles, Lua for gameplay.

What Torque 3D actually does here — and what it does not

Torque 3D is written in C++ and C, runs on Windows, macOS and Linux, and ships with world editing, terrain, COLLADA support, deferred lighting and networking. That is useful scaffolding, but it is not why BeamNG crashes look right.

BeamNG's own selling point is different: every component is simulated in real time as nodes (mass points) and beams (springs). Crashes feel visceral because the damage model tracks chassis, engine, driveshaft, clutch, tires and fuel tanks, not just bent fenders. Blow out a tire, overload a clutch, starve fuel, rupture a tank after a rear hit — the car fails for mechanical reasons, not because a health bar hit zero.

This is classic soft-body dynamics: model mass points connected by spring-damper systems obeying variants of Hooke's law, integrate Newton's second law each step, then deform the rendered mesh to match. It is the opposite of the rigid-body shortcut most driving games use, where the car is an indestructible box with a wobble animation.

My read, labeled as analysis not fact: Torque was the stage, not the play. BeamNG rents cheap seats (rendering, terrain, tools) so it can afford an expensive actor (per-car physics). Most studios do the reverse — rent expensive graphics and fake the physics. That inversion is why BeamNG still looks plain next to Forza but feels more honest in a 40-mph wall tap.

JBeam is a spreadsheet that pretends to be a car

Vehicles use a node-beam structure in a JSON-like text format called JBeam. Think vertices connected by beams, with weights and masses tuned to flex and permanently deform under stress.

Because JBeam is text, it is versionable, diffable and forkable. Players do not need a proprietary editor to add a fictional or real car; they edit text, wrap a simple skin, and share it through the officially maintained mod repository or third-party sites. In-game brands carry light lore precisely because there are no licensed manufacturers — licensing would forbid the core fantasy, which is destroying the car.

This is my second contrarian take: JBeam-as-moat. Modern engines hide complexity behind Nanite and black-box importers. BeamNG exposes complexity as text files. That looks primitive, but it turns every crash forum thread into documentation and every modder into QA. The ugly format is the retention system. You cannot get that from a prettier renderer alone.

Google and Bing suggestions prove the niche is alive: beamng drive mods engine, custom engines BeamNG, classic engine pack, diesel engine mod, engine builder. Players do not search how to win BeamNG. They search how to build an engine inside it.

Why Lua, and why it matters

BeamNG relies heavily on Lua, the lightweight embeddable scripting language created in Brazil in 1993 and distributed under the MIT License. Lua is designed to be embedded in C/C++ hosts via a simple C API, with dynamic typing and fast iteration.

For BeamNG that means gameplay logic, local data packets and vehicle subsystems can be tweaked without recompiling the engine. BeamNG.tech makes the same point explicitly: behavior is easily customizable using Lua extensions, with BeamNGpy for automation, plus camera, Lidar, IMU and ground-truth APIs for researchers.

My take: Lua is BeamNG's hiring filter and survival trick. TorqueScript old-timers, Rigs modders and Automation tinkerers already think in small text scripts. Unreal would have given them Blueprints and a larger hiring pool, but also a larger expectation of cinematic content. Lua keeps the team small and the community technical. Boring language, interesting crashes.

The Automation exporter proves the thesis

On June 15, 2018 BeamNG announced a partnership with New Zealand's Camshaft Software, makers of Automation: The Car Company Tycoon Game. Vehicles designed in Automation — itself now on Unreal Engine 4 after leaving its own Kee Engine — can be exported as fully drivable cars in BeamNG.drive. The collaboration build landed as version 0.13.

That is weird and revealing. One game simulates building a car company from 1946 to 2020. The other simulates breaking the product. Together they form a complete loop no single engine vendor offers: tycoon spreadsheet in, bent frame out. No Unreal marketplace pack gives you that.

Why 11 years in Early Access is a feature, not shame

May 2015 to 2026 in Early Access looks like failure if you grade by release parties. Grade by physics and it looks like discipline.

Soft-body at BeamNG fidelity is CPU-hungry, hard to network, and hostile to 60-fps guarantees. Native online multiplayer is not the product; local multiplayer via multiple controllers, career, campaigns, time trials and free roam with time, gravity and wind controls are. The popular BeamMP online mod exists precisely because deterministic crash sync over the internet is brutal — you cannot lie about deformation the way shooters lie about bullet hits.

My take, and where I break from crash-compilation YouTube: slowness is billing. Staying in Early Access lets BeamNG charge for honesty. Each 0.x can raise CPU requirements, break mods, and keep the sim crowd instead of chasing console certification. The October 2026 PS5 Early Access is telling — even consoles get Early Access, not a finished lie.

The second revenue leg confirms it. BeamNG.tech sells the same bottom-up soft-body model to 30+ institutional clients for ADAS, model-in-loop testing and driver training, with 12 hand-crafted open worlds and hundreds of miles of roads. When players fund edge cases (weird jumps, overloaded trailers), researchers buy the cleaned-up solver. The game is the test fleet.

What it costs

No licensed cars, so no Ferrari fantasy. No rigid-body forgiveness, so toasters suffer. No server-authoritative multiplayer, so racing leagues need mods and patience. Torque 3D itself is frozen in time for most devs — latest stable 4.0.3 in February 2023 — which means BeamNG maintains its own fork forever.

That is the rent-vs-own tradeoff most coverage misses. Unreal rents you a future. Torque gave BeamNG a past it could own. Owning an old engine is expensive, but abandoning a live physics community is more expensive.

What indie devs can steal

  1. Make damage the content. BeamNG's crash is not fail state; it is screenshot, video and mod. If your core verb can be watched without context, you do not need a campaign.
  2. Ship text if you want mods. Binary assets age; text files fork.
  3. Pick dead tech on purpose. A dead renderer has no roadmap to break you and no hype hires to afford. Your moat is maintenance.
  4. Do not network what you cannot lie about. If sync would dilute the sim, ship local play and let modders attempt BeamMP-style online. Honest single-player beats laggy fake multiplayer.
  5. Find a B2B twin. A crash lab that also trains drivers is two budgets for one solver.

Try the ideas in a browser this afternoon

You cannot run BeamNG soft-body in a tab, but you can train the instincts it rewards: weight transfer, braking points and delivery patience.

For terrain reading, jump into ATV Ultimate Offroad. Its Race, Free Drive and 2-player split give you the same loop BeamNG free roam teaches — read bumps early, brake before ruts, line up jumps straight — without a 40GB install. I use Free Drive as a warm-up for BeamNG off-road maps.

For the hauling economy, try American Truck Driver. Start in Washington, unlock states, upgrade speed and capacity. It compresses BeamNG career mode into a five-minute loop: pick up, drive carefully, deliver, upgrade. Notice how cargo condition punishes rushing — same lesson as JBeam, arcade skin.

For raw speed reflexes, run Ashline Racing: Born To Burn. It runs in-browser on WebGPU with auto-accelerate C-Drive and manual W-A-S-D, plus boost and handbrake. It is the opposite philosophy — forgiving arcade physics — which is exactly why it is useful: after ten minutes of boost taps you feel what BeamNG refuses to fake.

Start from the EasyHub portal if you want more driving and physics toys; all three load instantly with no download.

Bottom line

BeamNG did not pick Torque 3D because it was best. It picked Torque because it was ownable, then spent a decade building the part Torque never had: honest cars. JBeam text, Lua logic and soft-body math turned a dead shooter engine into a crash lab that players, modders and car researchers all pay for. That is not nostalgia. It is strategy: rent the stage, own the crash.

來源:DEV Community · dev.to