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

#include <RigDef_File.h>

+ Collaboration diagram for RigDef::Shock3:

Public Member Functions

 Shock3 ()
 

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 spring_out
 Spring value applied when shock extending. More...
 
float damp_out
 Damping value applied when shock extending. More...
 
float damp_in_slow
 Damping value applied when shock is commpressing slower than split in velocity. More...
 
float split_vel_in
 Split velocity in (m/s) - threshold for slow / fast damping during compression. More...
 
float damp_in_fast
 Damping value applied when shock is commpressing faster than split in velocity. More...
 
float damp_out_slow
 Damping value applied when shock is commpressing slower than split out velocity. More...
 
float split_vel_out
 Split velocity in (m/s) - threshold for slow / fast damping during extension. More...
 
float damp_out_fast
 Damping value applied when shock is commpressing faster than split out velocity. 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_m_METRIC = BITMASK(2)
 
static const BitMask_t OPTION_M_ABSOLUTE_METRIC = BITMASK(3)
 

Detailed Description

Definition at line 1224 of file RigDef_File.h.

Constructor & Destructor Documentation

◆ Shock3()

RigDef::Shock3::Shock3 ( )

Definition at line 126 of file RigDef_File.cpp.

Field Documentation

◆ beam_defaults

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

Definition at line 1247 of file RigDef_File.h.

◆ damp_in

float RigDef::Shock3::damp_in

Damping value applied when the shock is compressing.

Definition at line 1234 of file RigDef_File.h.

◆ damp_in_fast

float RigDef::Shock3::damp_in_fast

Damping value applied when shock is commpressing faster than split in velocity.

Definition at line 1239 of file RigDef_File.h.

◆ damp_in_slow

float RigDef::Shock3::damp_in_slow

Damping value applied when shock is commpressing slower than split in velocity.

Definition at line 1237 of file RigDef_File.h.

◆ damp_out

float RigDef::Shock3::damp_out

Damping value applied when shock extending.

Definition at line 1236 of file RigDef_File.h.

◆ damp_out_fast

float RigDef::Shock3::damp_out_fast

Damping value applied when shock is commpressing faster than split out velocity.

Definition at line 1242 of file RigDef_File.h.

◆ damp_out_slow

float RigDef::Shock3::damp_out_slow

Damping value applied when shock is commpressing slower than split out velocity.

Definition at line 1240 of file RigDef_File.h.

◆ detacher_group

int RigDef::Shock3::detacher_group

Definition at line 1248 of file RigDef_File.h.

◆ long_bound

float RigDef::Shock3::long_bound

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

Definition at line 1244 of file RigDef_File.h.

◆ nodes

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

Definition at line 1232 of file RigDef_File.h.

◆ OPTION_i_INVISIBLE

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

Definition at line 1228 of file RigDef_File.h.

◆ OPTION_M_ABSOLUTE_METRIC

const BitMask_t RigDef::Shock3::OPTION_M_ABSOLUTE_METRIC = BITMASK(3)
static

Definition at line 1230 of file RigDef_File.h.

◆ OPTION_m_METRIC

const BitMask_t RigDef::Shock3::OPTION_m_METRIC = BITMASK(2)
static

Definition at line 1229 of file RigDef_File.h.

◆ options

BitMask_t RigDef::Shock3::options

Definition at line 1246 of file RigDef_File.h.

◆ precompression

float RigDef::Shock3::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 1245 of file RigDef_File.h.

◆ short_bound

float RigDef::Shock3::short_bound

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

Definition at line 1243 of file RigDef_File.h.

◆ split_vel_in

float RigDef::Shock3::split_vel_in

Split velocity in (m/s) - threshold for slow / fast damping during compression.

Definition at line 1238 of file RigDef_File.h.

◆ split_vel_out

float RigDef::Shock3::split_vel_out

Split velocity in (m/s) - threshold for slow / fast damping during extension.

Definition at line 1241 of file RigDef_File.h.

◆ spring_in

float RigDef::Shock3::spring_in

Spring value applied when the shock is compressing.

Definition at line 1233 of file RigDef_File.h.

◆ spring_out

float RigDef::Shock3::spring_out

Spring value applied when shock extending.

Definition at line 1235 of file RigDef_File.h.


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