Torque Valley: Driving, Drift and Crash Sandbox
README.md
torqueCars.assemble
Builds a whole car under one chassis entity from a kind and part names: dynamic chassis with its centre of mass at the kind's height and weight split, four WheelCollider wheels with the tyre set's grip curve and drawn wheels, the ShaftNetwork drivetrain for the drive layout, and the plastic SoftBody shell held along the cabin floor. Idempotent: running build again updates the car in place (a live part swap). spawn builds a car and adds the Car component (synced in play).
local Assemble = require("torqueCars.assemble")
local car = Assemble.spawn({ kind = "pickup", look = "toy", position = vector.create(0, 0.2, 0), yaw = 0 })