add_wheels
Add left and right wheels per axle as separate parts with axle data for XML, including steer and drive flags.
Instructions
Add a left and a right wheel per axle, as separate parts with axle data for the XML.
Wheels are cylinders along X named wheel_fl, wheel_fr, wheel_bl, wheel_br (f = front, b = back, l = left -X, r = right +X; 1 axle: m, 3 axles: f, m, b; 4: f, m1, m2, b). Example for a body 16 voxels wide and 40 long: axles [{z: -13, steer: true}, {z: 13, drive: true}], diameter 8, width 2, inner_x 9 (wheels at X -11..-9 and 9..11). The body must not overlap the wheels: raise the body or carve wheel arches.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| axles | Yes | Axles, any order; usually front [z<0, steer] and back [z>0, drive]. | |
| width | Yes | Wheel width along X (voxels). | |
| inner_x | Yes | Distance from X = 0 to the inner face of each wheel: half the body width + 1 leaves a 1-voxel gap outside the body (as on the car verified in game). | |
| project | Yes | Project name, for example 'red_pickup'. | |
| diameter | Yes | Even number of voxels; the calibration car used 8. | |
| rim_color | No | Color name of the rim (center); default: tire. | |
| tire_color | Yes | Color name of the tire. | |
| axle_height | No | Y of the axles; default diameter / 2 (wheels touch Y = 0). |