![]() |
Rigs of Rods 2023.09
Soft-body Physics Simulation
|
#include <RigDef_File.h>
Data Fields | |
| Node::Ref | nodes [2] |
| float | spring_rate = 0.f |
| The 'stiffness' of the shock. The higher the value, the less the shock will move for a given bump. | |
| float | damping = 0.f |
| The 'resistance to motion' of the shock. The best value is given by this equation: 2 * sqrt(suspended mass * springness) | |
| float | short_bound = 0.f |
| Maximum contraction. The shortest length the shock can be, as a proportion of its original length. "0" means the shock will not be able to contract at all, "1" will let it contract all the way to zero length. If the shock tries to shorten more than this value allows, it will become as rigid as a normal beam. | |
| float | long_bound = 0.f |
| Maximum extension. The longest length a shock can be, as a proportion of its original length. "0" means the shock will not be able to extend at all. "1" means the shock will be able to double its length. Higher values allow for longer extension. | |
| float | precompression = 1.f |
| Changes compression or extension of the suspension when the truck spawns. This can be used to "level" the suspension of a truck if it sags in game. The default value is 1.0. | |
| BitMask_t | options = 0 |
| std::shared_ptr< BeamDefaults > | beam_defaults |
| int | detacher_group = 0 |
Static Public Attributes | |
| static const BitMask_t | OPTION_i_INVISIBLE = BITMASK(1) |
| static const BitMask_t | OPTION_L_ACTIVE_LEFT = BITMASK(2) |
| static const BitMask_t | OPTION_R_ACTIVE_RIGHT = BITMASK(3) |
| static const BitMask_t | OPTION_m_METRIC = BITMASK(4) |
Definition at line 1073 of file RigDef_File.h.
| std::shared_ptr<BeamDefaults> RigDef::Shock::beam_defaults |
Definition at line 1087 of file RigDef_File.h.
| float RigDef::Shock::damping = 0.f |
The 'resistance to motion' of the shock. The best value is given by this equation: 2 * sqrt(suspended mass * springness)
Definition at line 1082 of file RigDef_File.h.
| int RigDef::Shock::detacher_group = 0 |
Definition at line 1088 of file RigDef_File.h.
| float RigDef::Shock::long_bound = 0.f |
Maximum extension. The longest length a shock can be, as a proportion of its original length. "0" means the shock will not be able to extend at all. "1" means the shock will be able to double its length. Higher values allow for longer extension.
Definition at line 1084 of file RigDef_File.h.
| Node::Ref RigDef::Shock::nodes[2] |
Definition at line 1080 of file RigDef_File.h.
Definition at line 1075 of file RigDef_File.h.
Definition at line 1076 of file RigDef_File.h.
Definition at line 1078 of file RigDef_File.h.
Definition at line 1077 of file RigDef_File.h.
| BitMask_t RigDef::Shock::options = 0 |
Definition at line 1086 of file RigDef_File.h.
| float RigDef::Shock::precompression = 1.f |
Changes compression or extension of the suspension when the truck spawns. This can be used to "level" the suspension of a truck if it sags in game. The default value is 1.0.
Definition at line 1085 of file RigDef_File.h.
| float RigDef::Shock::short_bound = 0.f |
Maximum contraction. The shortest length the shock can be, as a proportion of its original length. "0" means the shock will not be able to contract at all, "1" will let it contract all the way to zero length. If the shock tries to shorten more than this value allows, it will become as rigid as a normal beam.
Definition at line 1083 of file RigDef_File.h.
| float RigDef::Shock::spring_rate = 0.f |
The 'stiffness' of the shock. The higher the value, the less the shock will move for a given bump.
Definition at line 1081 of file RigDef_File.h.