ManualGearbox

ManualGearbox

From BeamNG

Revision as of 04:30, 20 July 2018 by Capkirk (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The manual gear box (device name "manualGearbox") is a model of an manual transmission. In a Powertrain, it can be placed behind a viscousClutch or frictionClutch, and should have a shaft, differential, or splitShaft connected to it. It can have any number of gears. The manualGearbox accumulates damage on each gear from shifting while the gearbox is still transmitting torque. When the damage reaches 100%, that gear will fail (act the same as neutral).

Jbeam Properties

Name Type Optional Default Value Description
gearRatios array false na This array is the list of gear ratios available to the gearbox. 0 represents neutral. A negative number indicates a reverse gear. The gearbox will have as many gears as specified in the array. Ex "gearRatios":[-3,-2,0,4,3,2,1,0.5] has 5 forward and 2 reverse gear ratios.
gearDamageTreshold number true 3000 Maximum damage accumulation before a gear breaks. Damage is accumulated per gear.
friction number true 0 The friction torque applied to the input side of the gearbox.

Examples

Here is an example of the required powertrain section, along with the additional section for the properties.

    "powertrain": [
        ["type", "name", "inputName", "inputIndex"],
        ["manualGearbox", "gearbox", "clutch", 1],
    ],
    "gearbox": {
        "gearRatios":[-3.35, 0, 3.32, 1.90, 1.31, 1.00, 0.84],
        "gearDamageTreshold":10000,
        "friction": 1,
    },