Log inGet started
World

Torque Valley: Driving, Drift and Crash Sandbox

README.md

meshkit

A small procedural geometry kit in pure Luau, used by the torqueCars body and wheel generators and usable for any generated hard-surface model. It collects a triangle soup with a per-triangle colour and provides these primitives: gridBox (the surface of a rounded cube sampled on chosen grids, bent through a map function, with vertex neighbours for post-processing and a colour callback per quad), box (rounded and rotated, optionally tapered), tube, tubePath, ellipsoid, lathe (around X), and quadOut / triOut to orient faces. finalize turns the soup into mesh arrays (positions, normals, colors, uvs, indices) with flat or angle-thresholded smooth normals and vertex welding, optionally normalised to the unit box with center / size reported. meshkit.C holds the car part colours, whose alpha is the carBody shader's part code.