RigsofRods
Soft-body Physics Simulation
Public Member Functions | Data Fields | Static Public Attributes
RigDef::Shock2 Struct Reference

#include <RigDef_File.h>

+ Collaboration diagram for RigDef::Shock2:

Public Member Functions

 Shock2 ()
 

Data Fields

Node::Ref nodes [2]
 
float spring_in
 Spring value applied when the shock is compressing. More...
 
float damp_in
 Damping value applied when the shock is compressing. More...
 
float progress_factor_spring_in
 Progression factor for springin. A value of 0 disables this option. 1...x as multipliers, example:maximum springrate == springrate + (factor*springrate) More...
 
float progress_factor_damp_in
 Progression factor for dampin. 0 = disabled, 1...x as multipliers, example:maximum dampingrate == springrate + (factor*dampingrate) More...
 
float spring_out
 spring value applied when shock extending More...
 
float damp_out
 damping value applied when shock extending More...
 
float progress_factor_spring_out
 Progression factor springout, 0 = disabled, 1...x as multipliers, example:maximum springrate == springrate + (factor*springrate) More...
 
float progress_factor_damp_out
 Progression factor dampout, 0 = disabled, 1...x as multipliers, example:maximum dampingrate == springrate + (factor*dampingrate) More...
 
float short_bound
 Maximum contraction limit, in percentage ( 1.00 = 100% ) More...
 
float long_bound
 Maximum extension limit, in percentage ( 1.00 = 100% ) More...
 
float precompression
 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.
More...
 
BitMask_t options
 
std::shared_ptr< BeamDefaultsbeam_defaults
 
int detacher_group
 

Static Public Attributes

static const BitMask_t OPTION_i_INVISIBLE = BITMASK(1)
 
static const BitMask_t OPTION_s_SOFT_BUMP_BOUNDS = BITMASK(2)
 
static const BitMask_t OPTION_m_METRIC = BITMASK(3)
 
static const BitMask_t OPTION_M_ABSOLUTE_METRIC = BITMASK(4)
 

Detailed Description

Definition at line 1198 of file RigDef_File.h.

Constructor & Destructor Documentation

◆ Shock2()

RigDef::Shock2::Shock2 ( )

Definition at line 110 of file RigDef_File.cpp.

Field Documentation

◆ beam_defaults

std::shared_ptr<BeamDefaults> RigDef::Shock2::beam_defaults

Definition at line 1220 of file RigDef_File.h.

◆ damp_in

float RigDef::Shock2::damp_in

Damping value applied when the shock is compressing.

Definition at line 1209 of file RigDef_File.h.

◆ damp_out

float RigDef::Shock2::damp_out

damping value applied when shock extending

Definition at line 1213 of file RigDef_File.h.

◆ detacher_group

int RigDef::Shock2::detacher_group

Definition at line 1221 of file RigDef_File.h.

◆ long_bound

float RigDef::Shock2::long_bound

Maximum extension limit, in percentage ( 1.00 = 100% )

Definition at line 1217 of file RigDef_File.h.

◆ nodes

Node::Ref RigDef::Shock2::nodes[2]

Definition at line 1207 of file RigDef_File.h.

◆ OPTION_i_INVISIBLE

const BitMask_t RigDef::Shock2::OPTION_i_INVISIBLE = BITMASK(1)
static

Definition at line 1202 of file RigDef_File.h.

◆ OPTION_M_ABSOLUTE_METRIC

const BitMask_t RigDef::Shock2::OPTION_M_ABSOLUTE_METRIC = BITMASK(4)
static

Definition at line 1205 of file RigDef_File.h.

◆ OPTION_m_METRIC

const BitMask_t RigDef::Shock2::OPTION_m_METRIC = BITMASK(3)
static

Definition at line 1204 of file RigDef_File.h.

◆ OPTION_s_SOFT_BUMP_BOUNDS

const BitMask_t RigDef::Shock2::OPTION_s_SOFT_BUMP_BOUNDS = BITMASK(2)
static

Definition at line 1203 of file RigDef_File.h.

◆ options

BitMask_t RigDef::Shock2::options

Definition at line 1219 of file RigDef_File.h.

◆ precompression

float RigDef::Shock2::precompression

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 1218 of file RigDef_File.h.

◆ progress_factor_damp_in

float RigDef::Shock2::progress_factor_damp_in

Progression factor for dampin. 0 = disabled, 1...x as multipliers, example:maximum dampingrate == springrate + (factor*dampingrate)

Definition at line 1211 of file RigDef_File.h.

◆ progress_factor_damp_out

float RigDef::Shock2::progress_factor_damp_out

Progression factor dampout, 0 = disabled, 1...x as multipliers, example:maximum dampingrate == springrate + (factor*dampingrate)

Definition at line 1215 of file RigDef_File.h.

◆ progress_factor_spring_in

float RigDef::Shock2::progress_factor_spring_in

Progression factor for springin. A value of 0 disables this option. 1...x as multipliers, example:maximum springrate == springrate + (factor*springrate)

Definition at line 1210 of file RigDef_File.h.

◆ progress_factor_spring_out

float RigDef::Shock2::progress_factor_spring_out

Progression factor springout, 0 = disabled, 1...x as multipliers, example:maximum springrate == springrate + (factor*springrate)

Definition at line 1214 of file RigDef_File.h.

◆ short_bound

float RigDef::Shock2::short_bound

Maximum contraction limit, in percentage ( 1.00 = 100% )

Definition at line 1216 of file RigDef_File.h.

◆ spring_in

float RigDef::Shock2::spring_in

Spring value applied when the shock is compressing.

Definition at line 1208 of file RigDef_File.h.

◆ spring_out

float RigDef::Shock2::spring_out

spring value applied when shock extending

Definition at line 1212 of file RigDef_File.h.


The documentation for this struct was generated from the following files: