╔═══════════════════════════════════════╗
║         Car Definition README         ║
╚═══════════════════════════════════════╝

 By default, files are looked for in: assettocorsa/apps/lua/TrafficTool/data
Prepend filepath with '!' to look in: assettocorsa/content/cars

=======================================================================================================================
  📝 GENERAL
=======================================================================================================================
name        = display name
main        = main 3D model relative filepath (traffic_bmw_1m/bmw_1m.kn5)
lod         = LOD model relative filepath (traffic_bmw_1m/bmw_1m_lod.kn5)
collider    = collider model relative filepath (traffic_bmw_1m/bmw_1m_collider.kn5)
maxSpeed    = max speed (km/h)
color       = paint color ("none|modern|vintage" | hex | list of hex)
police      = enable car as police vehicle (true | false)
engine      = car engine ("STD|CVT|EV")

=======================================================================================================================
  💡 LIGHTS
=======================================================================================================================
lights = light names
    headlights   = 3D headlight mesh names
    brakelights  = 3D brake light mesh names
    taillights   = 3D rear light mesh names
    lightbar     = 3D police lightbar mesh names
    rear ⚠️        = 3D meshes shared between taillights & brakelights

    headlightOffset  = x|y|z offsets for headlights light source position
    taillightOffset  = x|y|z offsets for headlights light source position

    headlightBrightness  = intensity of light color (0-200)
    taillightBrightness  = intensity of light color (0-200)
    brakelightBrightness = intensity of light color (0-200)

    headlightEmissiveBrightness  = intensity of emissive light color (0-200)
    taillightEmissiveBrightness  = intensity of emissive light color (0-200)
    brakelightEmissiveBrightness = intensity of emissive light color (0-200)

    headlightColor  = light source/emissive color (hex | "modern|halogen|vintage|xenon|amber|purple|green|red")
    taillightColor  = light source/emissive color (hex)
    brakelightColor = light source/emissive color (hex)
    lightbarColorA  = light source/emissive color (hex)
    lightbarColorB  = light source/emissive color (hex)

=======================================================================================================================
  📏 DIMENSIONS
=======================================================================================================================
Property        | Small | Medium | Large | Description
-----------------------------------------------------------------------------------------------------------------------
length          |  4.5  |  7.5   | 10.5  | car length (m)
width           |  1.6  |  2.5   |  3.0  | car width (m)
height          |  1.4  |  2.5   |  4.5  | car height (m)
fakeShadowX     |  1.15 |  1.6   |  1.85 | shadow width (m)  | halfWidth  + 0.35
fakeShadowZ     |  2.4  |  3.9   |  5.4  | shadow length (m) | halfLength + 0.15
heightOffset    |  0.0  |  0.0   |  0.0  | vertical offset (m)
pitchOffset     |  0.0  |  0.0   |  0.0  | pitch rotation (deg)
front ⚠️          |  0.5  |  0.5   |  0.5  | distance (m) from driver.pos to front axle of car
rear  ⚠️          |  0.5  |  0.5   |  0.5  | distance (m) from driver.pos to rear axle of car

=======================================================================================================================
  ⚙️ PHYSICS
=======================================================================================================================
Property          |  Small  |  Medium  |  Large  | Description
-----------------------------------------------------------------------------------------------------------------------
mass              | 1500    | 1800     | 2500    | car mass (kg)
suspensionDamping |   15    |   15     |   15    | damping (coefficient) | scaled by mass
suspensionForce   |   30    |   30     |   30    | stiffness (coefficient) | scaled by mass
suspensionTravel  |    0.05 |    0.07  |    0.09 | travel length (m)
turningOffset     |    2.3  |    2.3   |    2.3  | turning offset (m) used when calculating rotation of the car
wheelBase         |    3.0  |    5.0   |    7.0  | length (m) from front axle to rear axle | length * 0.67
wheelGripForce    |    7.0  |    7.0   |    7.0  | grip force per wheel (coefficient) | scaled by mass
wheelRadius       |    0.33 |    0.36  |    0.45 | wheel radius (m)
cog         ⚠️      |      vec3(0, 0.8, 0.2)       | center of gravity for vehicle
carnageMass ⚠️      |         mass * 0.001         | mass (m) used for carnage mode
cache       ⚠️      |             {}               | cache for physics properties
