Hydros are beams whose length can be varied on demand.
They’re used for many things, including steering racks, hydraulic cylinders, and actuators for doors.
Their length is defined using electrics .
With a factor of 1, sending a command of 1 to a beam will cause it to double in length, while a command of -0.5 will cause the beam to half in length. Smaller factors will result in a smaller length variation.
Some optional arguments are supposed to be used together, and overwrite other arguments. Others are free to be used with any other arguments. It depends how the hydro is controlled by the input.
These can be used with any other arguments.
This is center to lock angle. Standard steering will be around 450~500, with older cars and trucks having slightly more angle, and racing cars having less angle.
This drives the “steering” electric used for steering wheel props.
Use these together when you want to change the minimum and maximum length of the hydro proportionally to the spawn length, but with different proportion for extension and retraction. These get overwritten by “inExtent”, “outExtent”, “factor” and “extentFactor” from the next groups.
A value of 0.5 will result in the hydro extending by half the outLimit value proportional to its length when the input is 1, and compressing by half the inLimit value proportional to its length when the input is -1.
Negative values will cause the hydro to contract instead of expanding with positive input values and vice versa.
Use these together when you want to change the minimum and maximum length of the hydro by direct values in meters, but with different values for extension and retraction. These get overwritten by “factor” and “extentFactor” from the next groups.
A value of 0.5 will result in the hydro extending by half the outLimit value when the input is 1, and compressing by half the inLimit value when the input is -1.
Negative values will cause the hydro to contract instead of expanding with positive input values and vice versa.
Use this when you want to change the minimum and maximum length of the hydro proportionally to the spawn length, with the sane proportion for extension and retraction. Gets overwritten by “extentFactor” from the next group.
A value of 0.5 will result in the hydro halving in length at when the input is -1, and an extension to 1.5 times the hydro’s initial length when the input is 1.
Negative values will cause the hydro to contract instead of expanding with positive input values and vice versa.
Use this when you want to change the minimum and maximum length of the hydro by direct values in meters, with the same values for extension and retraction.
A value of 0.5 will result in the hydro reducing its length by 0.5m at when the input is -1, and increasing it by 0.5m when the input is 1.
Negative values will cause the hydro to contract instead of expanding with positive input values and vice versa.
As they are for the most part a special type of beam , hydros can use a most of the arguments related to standard beams like beamSpring, beamDamp, beamPrecompression, etc.
"hydros": [
["id1:","id2:"],
{"beamPrecompression":1.0, "beamType":"|NORMAL", "beamLongBound":1, "beamShortBound":1},
{"beamSpring":8001000,"beamDamp":50,"beamDeform":"FLT_MAX","beamStrength":125000},
["fh6r","fx5l", {"factor": 0.14,"steeringWheelLock":510,"inRate":1.25,"outRate":1.25}],
["fh6l","fx5r", {"factor":-0.14,"steeringWheelLock":510,"inRate":1.25,"outRate":1.25}],
{"beamPrecompression":1.0, "beamType":"|NORMAL", "beamLongBound":1, "beamShortBound":1},
],
"hydros": [
["id1:","id2:"],
{"beamDeform":175000,"beamStrength":"FLT_MAX"},
{"beamSpring":20001000,"beamDamp":5000},
{"beamPrecompression":1.0},
{"breakGroupType":1},
{"breakGroup":"dump_hydros"},
["tfr2r","tfr1r", {"inputSource":"tilt","inLimit":0,"outLimit":1.9,"inRate":0.2,"outRate":0.2,"inputFactor":1.0}],
["tfr2l","tfr1l", {"inputSource":"tilt","inLimit":0,"outLimit":1.9,"inRate":0.2,"outRate":0.2,"inputFactor":1.0}],
{"beamPrecompression":1.0},
{"breakGroupType":0},
{"breakGroup":""},
],
Was this article helpful?