Torsionbars

Torsion bars are used when you want to have a certain amount of resistance to torque between two levers. They are defined using 4 nodes, which define the end of the first lever, the two nodes that serve as the axis, and the end of second lever.

They are used to simulate structures that resist forces in torsion like sway bars, and to help rigidify flat structures like ladder chassis and shock mounts of suspension arms without the use of rigidifier nodes.

If a beam located between 2 consecutive nodes of a torsion bar breaks, the torsion bar itself will break.

Required arguments

string
type
The first lever end node
string
type
The first axis node
string
type
The second axis node
string
type
The second lever end node

Optional arguments

number
type
The stiffness of the torsion bar (Nm/rad)
number
type
The damping of the torsion bar (Nm.s/rad)
number
type
How much torque the torsion bar can take before deforming (Nm)
number
type
How much torque the torsion bar can take before breaking (Nm)
number
type
0
default
How much the torsion bar will twist on spawn (rad)
number
type
0
default
Number of seconds it takes for the torsion bar to twist on spawn
string
type
Name of the torsionbar, used by some systems such as the adaptive sway bar controller

Simple Example

    "torsionbars": [
        ["id1:", "id2:", "id3:", "id4:"],
        ["node1", "node2", "node3", "node4"],
    ],

Advanced Example

    "torsionbars": [
        ["id1:", "id2:", "id3:", "id4:"],
        {"spring":10000000, "damp":100, "deform":25000, "strength":100000},
        //rigidify steering arm
        ["oma1tl", "oma1l", "oma1r", "omatiltr"],
        ["oma1tr", "oma1r", "oma1l", "omatiltl"],
    ],
Last modified: September 11, 2024

Any further questions?

Join our discord
Our documentation is currently incomplete and undergoing active development. If you have any questions or feedback, please visit this forum thread.