About
A raycast-wheel vehicle stack for s&box, extracted from our released game Vehicle Prototyping. This is the exact code that game runs: contact-normal suspension, slip-curve tires with a friction ellipse, a full drivetrain with auto-clutch and auto/sequential shifting, per-car assist levels (Casual, Sport, Sim), a spring-arm chase camera, and placeholder engine and skid audio. SI units end to end, deterministic, and it runs on primitive blockout bodies, so you need zero art to get driving.
š§šæš š¶š š¶š» š²š¬ šš²š°š¼š»š±š: install the kit, open the bundled vehiclephysics_demo scene, press play. WASD drives, mouse orbits, scroll zooms. Want to see it dressed up? Play Vehicle Prototyping, it is this kit with car models on top.
ššæš¶š»š“ šš¼ššæ š¼šš» š°š®šæš: define a CarDefinition (chassis, wheels, tires, drivetrain, brakes, assists), spawn it with VehicleFactory.Spawn, and plug your own models in through the CustomBodyBuilder seam. The README in Source covers the full API, the seams, and the input actions you need.
šš¶šæšš š“š²š»š²šæš®šš¶š¼š», šš¼šæšø š¶š» š½šæš¼š“šæš²šš. This is an early release: the core physics is proven in a shipped game, but the API surface may still move and there are rough edges. Feedback, bug reports and feature requests genuinely shape where this goes. Come tell us what you are building: https://discord.gg/JfrwFtn9T
MIT licensed. Fork it, ship it, no strings.