RigsofRods
Soft-body Physics Simulation
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
SimData.h
Go to the documentation of this file.
1 /*
2  This source file is part of Rigs of Rods
3  Copyright 2005-2012 Pierre-Michel Ricordel
4  Copyright 2007-2012 Thomas Fischer
5  Copyright 2013-2023 Petr Ohlidal
6 
7  For more information, see http://www.rigsofrods.org/
8 
9  Rigs of Rods is free software: you can redistribute it and/or modify
10  it under the terms of the GNU General Public License version 3, as
11  published by the Free Software Foundation.
12 
13  Rigs of Rods is distributed in the hope that it will be useful,
14  but WITHOUT ANY WARRANTY; without even the implied warranty of
15  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  GNU General Public License for more details.
17 
18  You should have received a copy of the GNU General Public License
19  along with Rigs of Rods. If not, see <http://www.gnu.org/licenses/>.
20 */
21 
29 
30 #pragma once
31 
32 #include "Application.h"
33 #include "ForwardDeclarations.h"
34 #include "SimConstants.h"
35 #include "BitFlags.h"
36 #include "CmdKeyInertia.h"
37 #include "InputEngine.h"
38 
39 #include <memory>
40 #include <Ogre.h>
41 #include <rapidjson/document.h>
42 
43 namespace RoR {
44 
47 {
48  EVENT_NONE = 0,
55 };
56 
57 
60 
61 enum BeamType: short
62 {
66 };
67 
69 
72 
74 {
78 };
79 
80 enum ActorType
81 {
82  // DO NOT MODIFY NUMBERS - serialized into cache file, see RoR::CacheEntry
83 
85  TRUCK = 1,
86  AIRPLANE = 2,
87  BOAT = 3,
88  MACHINE = 4,
89  AI = 5,
90 };
91 
93 
96 
97 enum SpecialBeam: short
98 {
106 };
107 
109 
112 
114 {
119 };
120 
122 {
131 };
132 
134 {
167 };
168 
170 {
180 };
181 
183 
186 
188 {
204 };
205 
207 
210 
212 {
219 };
220 
223 
225 {
230 };
231 
234 
237 
238 enum class ActorState
239 {
241  NETWORKED_OK,
243  LOCAL_REPLAY,
245  DISPOSED
246 };
247 
248 enum class AeroEngineType
249 {
250  AE_UNKNOWN,
251  AE_XPROP,
252  AE_TURBOJET,
253 };
254 
255 // --------------------------------
256 // Soft body physics
257 
259 struct node_t
260 {
261  static const int8_t INVALID_BBOX = -1;
262 
263  node_t() { memset(this, 0, sizeof(node_t)); nd_coll_bbox_id = INVALID_BBOX; }
264  node_t(size_t _pos) { memset(this, 0, sizeof(node_t)); nd_coll_bbox_id = INVALID_BBOX; pos = static_cast<short>(_pos); }
265 
266  Ogre::Vector3 RelPosition;
267  Ogre::Vector3 AbsPosition;
268  Ogre::Vector3 Velocity;
269  Ogre::Vector3 Forces;
270 
271  Ogre::Real mass;
272  Ogre::Real buoyancy;
273  Ogre::Real friction_coef;
274  Ogre::Real surface_coef;
275  Ogre::Real volume_coef;
276 
278  int16_t nd_coll_bbox_id;
279  int16_t nd_lockgroup;
280 
281  // Bit flags
282  bool nd_cab_node:1;
283  bool nd_rim_node:1;
284  bool nd_tyre_node:1;
285  bool nd_contacter:1;
286  bool nd_contactable:1;
289  bool nd_immovable:1;
290  bool nd_loaded_mass:1;
293  bool nd_under_water:1;
296 
298  Ogre::Vector3 nd_last_collision_slip;
299  Ogre::Vector3 nd_last_collision_force;
301 };
302 
304 struct beam_t
305 {
306  beam_t();
307  ~beam_t();
308 
309  node_t* p1 = nullptr;
310  node_t* p2 = nullptr;
311  float k = 0.f;
312  float d = 0.f;
313  float L = 0.f;
314  float minmaxposnegstress = 0.f;
315  float maxposstress = 0.f;
316  float maxnegstress = 0.f;
317  float strength = 0.f;
318  float stress = 0.f;
319  float plastic_coef = 0.f;
323  bool bm_inter_actor = false;
325  bool bm_disabled = false;
326  bool bm_broken = false;
327 
328  float shortbound = 0.f;
329  float longbound = 0.f;
330  float refL = 0.f;
331 
332  shock_t* shock = nullptr;
333 
334  float initial_beam_strength = 0.f;
335  float default_beam_deform = 0.f;
336  float default_beam_diameter = 0.f;
337 
338  float debug_k = 0.f;
339  float debug_d = 0.f;
340  float debug_v = 0.f;
341 };
342 
343 struct shock_t
344 {
345  shock_t() { memset(this, 0, sizeof(shock_t)); }
346 
347  int beamid;
348  int flags;
349 
356 
357  float springin;
358  float dampin;
359  float springout;
360  float dampout;
361 
362  float sprogin;
363  float dprogin;
364  float sprogout;
365  float dprogout;
366 
367  float splitin;
368  float dslowin;
369  float dfastin;
370  float splitout;
371  float dslowout;
372  float dfastout;
373 
374  float sbd_spring;
375  float sbd_damp;
376  float sbd_break;
377 
379 };
380 
382 {
383  int rate; // remaining amount of physics cycles to be skipped
384  int distance; // distance (in physics cycles) to the previous collision check
385 };
386 
388 
390 {
391  soundsource_t();
392  ~soundsource_t();
393 
396  int type;
397 };
398 
399 struct wheel_t
400 {
402  node_t* wh_nodes[50]; // TODO: remove limit, make this dyn-allocated ~ only_a_ptr, 08/2017
404  node_t* wh_rim_nodes[50]; // TODO: remove limit, make this dyn-allocated ~ only_a_ptr, 08/2017
411  Ogre::Real wh_radius;
412  Ogre::Real wh_rim_radius;
413  Ogre::Real wh_speed;
414  Ogre::Real wh_avg_speed;
415  Ogre::Real wh_alb_coef;
416  Ogre::Real wh_tc_coef;
417  Ogre::Real wh_mass;
418  Ogre::Real wh_torque;
419  Ogre::Real wh_last_torque;
420  Ogre::Real wh_last_retorque;
421  float wh_net_rp;
422  float wh_width;
424 
425  // Editing & Export (not used in simulation)
434  std::string wh_arg_media1;
435  std::string wh_arg_media2;
437 
438  // Debug
439  float debug_rpm;
441  Ogre::Vector3 debug_vel;
442  Ogre::Vector3 debug_slip;
443  Ogre::Vector3 debug_force;
444  Ogre::Vector3 debug_scaled_cforce;
445 };
446 
448 {
451 };
452 
455 
456 struct hook_t
457 {
458  hook_t();
459  ~hook_t();
460 
462  int hk_group = 0;
463  int hk_lockgroup = 0;
464  bool hk_selflock = false;
465  bool hk_autolock = false;
466  bool hk_nodisable = false;
467  float hk_maxforce = 0.f;
468  float hk_lockrange = 0.f;
469  float hk_lockspeed = 0.f;
470  float hk_timer = 0.f;
471  float hk_timer_preset = 0.f;
472  float hk_min_length = 0.f;
473  node_t* hk_hook_node = nullptr;
474  node_t* hk_lock_node = nullptr;
475  beam_t* hk_beam = nullptr;
477 };
478 
479 struct ropable_t
480 {
482  int pos;
483  int group;
486  bool multilock;
487 };
488 
489 struct rope_t
490 {
491  rope_t();
492  ~rope_t();
493 
494  int rp_locked = 0;
495  int rp_group = 0;
496  beam_t* rp_beam = nullptr;
499 };
500 
501 struct tie_t
502 {
503  tie_t();
504  ~tie_t();
505 
507  beam_t* ti_beam = nullptr;
509  int ti_group = 0;
510  float ti_contract_speed = 0.f;
511  float ti_max_stress = 0.f;
512  float ti_min_length = 0.f;
513 
515  bool ti_tied:1;
516  bool ti_tying:1;
517 };
518 
519 struct wing_t
520 {
522  Ogre::SceneNode *cnode;
523 };
524 
526 {
527  commandbeam_state_t() { memset(this, 0, sizeof(commandbeam_state_t)); }
528 
530 
531  // Bit flags
533  bool auto_move_lock:1;
534 };
535 
537 {
538  uint16_t cmb_beam_index;
541  float cmb_speed;
543 
544  // Bit flags
550  bool cmb_is_1press:1;
552 
553  std::shared_ptr<commandbeam_state_t> cmb_state;
554 };
555 
556 struct command_t
557 {
559  float commandValue = 0;
560  float triggerInputValue = 0.f;
561  float playerInputValue = 0.f;
563  std::vector<commandbeam_t> beams;
564  std::vector<int> rotators;
565  Ogre::String description;
568 };
569 
570 struct hydrobeam_t
571 {
572  uint16_t hb_beam_index{0};
573  float hb_ref_length{0};
574  float hb_speed{0};
577  float hb_anim_param{0};
579 };
580 
581 struct rotator_t
582 {
588  float angle;
589  float rate;
590  float force;
591  float tolerance;
593  float debug_rate;
595 };
596 
597 struct flare_t
598 {
602  float offsetx;
603  float offsety;
604  float offsetz;
605  Ogre::SceneNode *snode = nullptr;
606  Ogre::BillboardSet *bbs = nullptr;
607  Ogre::Light *light = nullptr;
611  float blinkdelay;
614  float size;
615  float intensity;
616  bool uses_inertia = false;
618 };
619 
622 {
623  bool eventlock_present = false;
624  bool event_active_prev = false;
625  bool anim_active = false;
627 };
628 
632 {
633 public:
634  command_t& operator[](int index)
635  {
636  if (index >= 0 && index <= MAX_COMMANDS) // for backwards compatibility, we accept 0 as index too.
637  {
638  return m_commandkey[index]; // valid commandkey (indexed 1-MAX_COMMANDS!)
639  }
640  else if (index < 0)
641  {
642  return m_virtualkey[index]; // 'virtual' commandkey - if hashmap value doesn't exist, it's inserted automatically.
643  }
644  else
645  {
646  assert(false);
647  return m_dummykey; // Whatever!
648  }
649  }
650 private:
651  std::array<command_t, MAX_COMMANDS + 1> m_commandkey;
652  std::unordered_map<int, command_t> m_virtualkey;
654 };
655 
659 {
660  std::string uckp_description;
663 };
664 
666 
667 // --------------------------------
668 // some non-actor structs
669 
672 
675 
676 
678 {
679  bool virt;
680  bool refined;
682  bool camforced;
683  bool enabled;
686  Ogre::Vector3 lo;
687  Ogre::Vector3 hi;
688  Ogre::Vector3 center;
689  Ogre::Quaternion rot;
690  Ogre::Quaternion unrot;
691  Ogre::Vector3 selfcenter;
692  Ogre::Quaternion selfrot;
693  Ogre::Quaternion selfunrot;
694  Ogre::Vector3 relo;
695  Ogre::Vector3 rehi;
696  Ogre::Vector3 campos;
697  Ogre::Vector3 debug_verts[8];
698  std::string reverb_preset_name;
699 };
700 typedef std::vector<collision_box_t*> CollisionBoxPtrVec;
701 
704 {
705  float va;
706  float ms;
707  float mc;
708  float t2;
709  float vs;
710  float alpha;
711  float strength;
712 
715 
720 
721 
724 
725  int fx_type;
726  Ogre::ColourValue fx_colour;
727  char name[256];
728  char basename[256];
729  char particle_name[256];
730 
732 
739 };
740 
742 
743 enum class FreeForceType
744 {
745  DUMMY,
746  CONSTANT,
748  TOWARDS_NODE,
750  HALFBEAM_ROPE,
751 };
752 
754 struct FreeForce
755 {
756  // Common params:
759  float ffc_force_magnitude = 0.f;
762  // Direction-specific params:
763  Ogre::Vector3 ffc_force_const_direction = Ogre::Vector3::ZERO;
764  Ogre::Vector3 ffc_target_coords = Ogre::Vector3::ZERO;
767  // Half-beam specific params:
774  // Half-beam simulation state:
775  float ffc_halfb_L = 0.f;
776  float ffc_halfb_stress = 0.f;
780 };
781 
784 {
785  // AngelScript `dictionary` converts all primitives to `double` or `int64`, see 'scriptdictionary.cpp', function `Set()`
786 
787  // common params:
789  int64_t ffr_type = (int64_t)FreeForceType::DUMMY;
790  double ffr_force_magnitude = 0.0;
793  // direction-specific params:
794  Ogre::Vector3 ffr_force_const_direction = Ogre::Vector3::ZERO;
795  Ogre::Vector3 ffr_target_coords = Ogre::Vector3::ZERO;
798  // Half-beam specific params:
805 };
806 
808 
810 {
811  int id;
812  Ogre::String type;
813  Ogre::String name;
814  Ogre::String email;
815 };
816 
818 {
821 
822  enum class Origin
823  {
824  UNKNOWN,
825  CONFIG_FILE,
826  TERRN_DEF,
827  USER,
828  SAVEGAME,
829  NETWORK,
830  AI
831  };
832 
835  std::string asr_filename;
836  Ogre::String asr_config;
837  Ogre::Vector3 asr_position = Ogre::Vector3::ZERO;
838  Ogre::Quaternion asr_rotation = Ogre::Quaternion::ZERO;
844  int asr_debugview = 0; //(int)DebugViewType::DEBUGVIEW_NONE;
845  std::string asr_net_username;
846  int asr_net_color = 0;
848  int net_source_id = 0;
849  int net_stream_id = 0;
850  bool asr_free_position = false;
851  bool asr_enter = true;
852  bool asr_terrn_machine = false;
853  std::shared_ptr<rapidjson::Document>
855 };
856 
858 {
861 
862  enum class Type
863  {
864  INVALID,
865  RELOAD,
868  SOFT_RESPAWN,
869  SOFT_RESET,
871  WAKE_UP,
873  };
874 
875  ActorInstanceID_t amr_actor = ACTORINSTANCEID_INVALID;// not ActorPtr because it's not thread-safe
877  std::shared_ptr<rapidjson::Document>
880  std::string amr_addonpart_fname;
881  Ogre::Vector3 amr_softrespawn_position;
882  Ogre::Quaternion amr_softrespawn_rotation;
883 };
884 
886 {
887  INVALID,
889  // hookToggle()
890  HOOK_LOCK,
891  HOOK_UNLOCK,
892  HOOK_TOGGLE,
894  HOOK_RESET,
895  // tieToggle()
896  TIE_TOGGLE,
897  TIE_RESET,
898  // ropeToggle()
899  ROPE_TOGGLE,
900  ROPE_RESET,
901  // toggleSlideNodeLock()
903 };
904 
909 {
912  // hookToggle()
913  int alr_hook_group = -1;
915  // tieToggle()
916  int alr_tie_group = -1;
917  // ropeToggle()
918  int alr_rope_group = -1;
919 };
920 
925 {
927 
928  // TractionControl
932 
933  // Engine
939 
940  // Engoption
952 
953  // Engturbo2 (actually 'engturbo' with Param #1 [type] set to "2" - the recommended variant)
968 
969 };
970 const char* ActorSimAttrToString(ActorSimAttr attr);
971 
972 } // namespace RoR
RoR::node_t::nd_coll_bbox_id
int16_t nd_coll_bbox_id
Optional attribute (-1 = none) - multiple collision bounding boxes defined in truckfile.
Definition: SimData.h:278
RoR::ActorLinkingRequest::alr_hook_group
int alr_hook_group
Definition: SimData.h:913
RoR::LOCALIZER_NDB
@ LOCALIZER_NDB
Definition: SimData.h:228
RoR::collcab_rate_t::rate
int rate
Definition: SimData.h:383
RoR::ground_model_t::solid_ground_level
float solid_ground_level
how deep the solid ground is
Definition: SimData.h:722
RoR::flare_t::offsety
float offsety
Definition: SimData.h:603
MAX_COMMANDS
static const int MAX_COMMANDS
maximum number of commands per actor
Definition: SimConstants.h:28
RoR::wheel_t::wh_rim_nodes
node_t * wh_rim_nodes[50]
Definition: SimData.h:404
RoR::rope_t::rp_group
int rp_group
Definition: SimData.h:495
RoR::ANIM_FLAG_HEADING
@ ANIM_FLAG_HEADING
Definition: SimData.h:157
RoR::wing_t::fa
FlexAirfoil * fa
Definition: SimData.h:521
RoR::ACTORSIMATTR_ENGOPTION_POST_SHIFT_TIME
@ ACTORSIMATTR_ENGOPTION_POST_SHIFT_TIME
Time (in seconds) until full torque is transferred - Param #6 of 'engoption'.
Definition: SimData.h:946
RoR::rotator_t::nodes2
NodeNum_t nodes2[4]
Definition: SimData.h:585
RoR::SHOCK_FLAG_SOFTBUMP
@ SHOCK_FLAG_SOFTBUMP
Definition: SimData.h:194
RoR::shock_t::last_debug_state
int last_debug_state
smart debug output
Definition: SimData.h:355
RoR::ground_model_t::fx_particle_max_velo
float fx_particle_max_velo
maximum velocity to display sparks
Definition: SimData.h:734
RoR::WheelBraking
WheelBraking
Definition: Application.h:521
RoR::ANIM_FLAG_BRUDDER
@ ANIM_FLAG_BRUDDER
Definition: SimData.h:163
RoR::command_t::command_inertia
RoR::CmdKeyInertia command_inertia
Definition: SimData.h:567
RoR::WheelSide
WheelSide
Used by rig-def/addonpart/tuneup formats to specify wheel rim mesh orientation.
Definition: Application.h:542
RoR::ANIM_FLAG_AILERONS
@ ANIM_FLAG_AILERONS
Definition: SimData.h:161
RoR::node_t::nd_contacter
bool nd_contacter
Attr; User-defined.
Definition: SimData.h:285
RoR::soundsource_t::ssi
SoundScriptInstancePtr ssi
Definition: SimData.h:394
RoR::SHOCK3
@ SHOCK3
shock3
Definition: SimData.h:102
RoR::ActorSpawnRequest::asr_net_color
int asr_net_color
Definition: SimData.h:846
RoR::rotator_t::rate
float rate
Definition: SimData.h:589
RoR::ActorSpawnRequest::asr_free_position
bool asr_free_position
Disables the automatic spawn position adjustment.
Definition: SimData.h:850
RoR::ANIM_MODE_ROTA_Z
@ ANIM_MODE_ROTA_Z
Definition: SimData.h:173
RoR::commandbeam_t::cmb_is_force_restricted
bool cmb_is_force_restricted
Attribute defined in truckfile.
Definition: SimData.h:546
RoR::ANIM_FLAG_ACCEL
@ ANIM_FLAG_ACCEL
Definition: SimData.h:145
RoR::ActorModifyRequest::Type::WAKE_UP
@ WAKE_UP
RoR::wing_t::cnode
Ogre::SceneNode * cnode
Definition: SimData.h:522
RoR::hook_t::hk_timer
float hk_timer
Definition: SimData.h:470
RoR::shock_t::dslowin
float dslowin
shocks3
Definition: SimData.h:368
RoR::node_t::Velocity
Ogre::Vector3 Velocity
Definition: SimData.h:268
ForwardDeclarations.h
Global forward declarations.
RoR::node_t::nd_immovable
bool nd_immovable
Attr; User-defined.
Definition: SimData.h:289
RoR::ActorSpawnRequest::Origin::NETWORK
@ NETWORK
Remote controlled.
RoR::HYDRO_FLAG_DIR
@ HYDRO_FLAG_DIR
Definition: SimData.h:124
RoR::CmdKeyArray::m_commandkey
std::array< command_t, MAX_COMMANDS+1 > m_commandkey
BEWARE: commandkeys are indexed 1-MAX_COMMANDS!
Definition: SimData.h:651
RoR::MACHINE
@ MACHINE
its a machine
Definition: SimData.h:88
RoR::ground_model_t::strength
float strength
ground strength
Definition: SimData.h:711
RoR::CmdKeyArray::m_dummykey
command_t m_dummykey
Definition: SimData.h:653
RoR::flare_t::bbs
Ogre::BillboardSet * bbs
This remains nullptr if removed via addonpart_unwanted_flare or Tuning UI.
Definition: SimData.h:606
RoR::FreeForce::ffc_target_node
NodeNum_t ffc_target_node
Definition: SimData.h:766
RoR::BeamType
BeamType
Definition: SimData.h:61
RoR::rope_t::rp_beam
beam_t * rp_beam
Definition: SimData.h:496
RoR::collision_box_t::reverb_preset_name
std::string reverb_preset_name
name of the reverb preset that applies to the inside of the collision box
Definition: SimData.h:698
RoR::FreeForceRequest::ffr_target_node
int64_t ffr_target_node
Definition: SimData.h:797
RoR::shock_t::dprogout
float dprogout
shocks2
Definition: SimData.h:365
RoR::flare_t::size
float size
Definition: SimData.h:614
RoR::TRUCK
@ TRUCK
its a truck (or other land vehicle)
Definition: SimData.h:85
RoR::ropable_t::multilock
bool multilock
Attribute.
Definition: SimData.h:486
RoR::command_t::rotators
std::vector< int > rotators
Definition: SimData.h:564
RoR::node_t::nd_avg_collision_slip
Ogre::Real nd_avg_collision_slip
Physics state; average slip velocity across the last few physics frames.
Definition: SimData.h:297
RoR::node_t::nd_last_collision_gm
ground_model_t * nd_last_collision_gm
Physics state; last collision 'ground model' (surface definition)
Definition: SimData.h:300
RoR::ground_model_t::va
float va
adhesion velocity
Definition: SimData.h:705
RoR::HYDRO_FLAG_REV_AILERON
@ HYDRO_FLAG_REV_AILERON
Definition: SimData.h:128
RoR::SHOCK_FLAG_TRG_BLOCKER_A
@ SHOCK_FLAG_TRG_BLOCKER_A
Definition: SimData.h:199
RoR::HYDRO_FLAG_SPEED
@ HYDRO_FLAG_SPEED
Definition: SimData.h:123
RoR::shock_t::springin
float springin
shocks2 & shocks3
Definition: SimData.h:357
RoR::FreeForce::ffc_halfb_plastic_coef
float ffc_halfb_plastic_coef
Definition: SimData.h:773
RoR::ACTORSIMATTR_ENGINE_DIFF_RATIO
@ ACTORSIMATTR_ENGINE_DIFF_RATIO
Differential ratio (aka global gear ratio) - Param #4 of 'engine'.
Definition: SimData.h:937
RoR::soundsource_t::soundsource_t
soundsource_t()
Definition: SimData.cpp:87
RoR::EVENT_AIRPLANE
@ EVENT_AIRPLANE
'airplane' ~ Triggered by any node of airplane (ActorType::AIRPLANE)
Definition: SimData.h:53
RoR::ActorSpawnRequest::Origin::CONFIG_FILE
@ CONFIG_FILE
'Preselected vehicle' in RoR.cfg or command line
RoR::ActorSpawnRequest::asr_origin
Origin asr_origin
Definition: SimData.h:843
RoR::node_t::AbsPosition
Ogre::Vector3 AbsPosition
absolute position in the world (shaky)
Definition: SimData.h:267
RoR::ActorModifyRequest::ActorModifyRequest
ActorModifyRequest()
Definition: SimData.cpp:97
RoR::wheel_t::wh_arg_media2
std::string wh_arg_media2
Definition: SimData.h:435
BEAM_DEFORM
static const float BEAM_DEFORM
Definition: SimConstants.h:61
RoR::shock_t::splitin
float splitin
shocks3
Definition: SimData.h:367
RoR::shock_t::trigger_enabled
bool trigger_enabled
general trigger,switch and blocker state
Definition: SimData.h:350
RoR::flare_t::dashboard_link
int dashboard_link
Only 'd' type flares, valid values are DD_*.
Definition: SimData.h:610
RoR::wheel_t::wh_nodes
node_t * wh_nodes[50]
Definition: SimData.h:402
RoR::EVENT_TRUCK_WHEELS
@ EVENT_TRUCK_WHEELS
'truck_wheels' ~ Triggered only by wheel nodes of land vehicle (ActorType::TRUCK)
Definition: SimData.h:52
RoR::ActorLinkingRequest
Estabilishing a physics linkage between 2 actors modifies a global linkage table and triggers immedia...
Definition: SimData.h:908
RoR::collision_box_t::virt
bool virt
Definition: SimData.h:679
RoR::node_t::nd_cinecam_node
bool nd_cinecam_node
Attr; User-defined.
Definition: SimData.h:295
RoR::beam_t::p1
node_t * p1
Definition: SimData.h:309
RoR::FreeForce::ffc_halfb_maxposstress
float ffc_halfb_maxposstress
Definition: SimData.h:778
RoR::ANIM_FLAG_ELEVATORS
@ ANIM_FLAG_ELEVATORS
Definition: SimData.h:166
RoR::collision_box_t::enabled
bool enabled
Definition: SimData.h:683
RoR::ActorModifyRequest::Type::REFRESH_VISUALS
@ REFRESH_VISUALS
Forces a synchronous update of visuals from any context - i.e. from terrain editor mode or with sleep...
RoR::HydroFlags
HydroFlags
Definition: SimData.h:121
RoR::ANIM_MODE_ROTA_X
@ ANIM_MODE_ROTA_X
Definition: SimData.h:171
RoR::FreeForce::ffc_halfb_maxnegstress
float ffc_halfb_maxnegstress
Definition: SimData.h:779
RoR::CollisionEventFilter
CollisionEventFilter
Specified in terrain object (.ODEF) file, syntax: 'event <type> <filter>'.
Definition: SimData.h:46
RoR::node_t::nd_under_water
bool nd_under_water
State; GFX hint.
Definition: SimData.h:293
RoR::wheel_t::wh_arg_keyword
RigDef::Keyword wh_arg_keyword
Definition: SimData.h:426
RoR::shock_t::sprogin
float sprogin
shocks2
Definition: SimData.h:362
RoR::FreeForceType::HALFBEAM_GENERIC
@ HALFBEAM_GENERIC
Like TOWARDS_NODE, but parametrized like a beam in truck fileformat.
RoR::node_t::surface_coef
Ogre::Real surface_coef
Definition: SimData.h:274
RoR::hydrobeam_t::hb_ref_length
float hb_ref_length
Idle length in meters.
Definition: SimData.h:573
RoR::wheel_t::debug_torque
float debug_torque
Definition: SimData.h:440
RoR::wheel_t::wh_num_nodes
int wh_num_nodes
Definition: SimData.h:401
RoR::NODENUM_INVALID
static const NodeNum_t NODENUM_INVALID
Definition: ForwardDeclarations.h:55
RoR::ACTORSIMATTR_ENGOPTION_MIN_IDLE_MIXTURE
@ ACTORSIMATTR_ENGOPTION_MIN_IDLE_MIXTURE
Min throttle to maintain idle RPM - Param #10 of 'engoption'.
Definition: SimData.h:950
RoR::ActorState::LOCAL_REPLAY
@ LOCAL_REPLAY
RoR::node_t::nd_contactable
bool nd_contactable
Attr; This node will be treated as contacter on inter truck collisions.
Definition: SimData.h:286
RoR::node_t::INVALID_BBOX
static const int8_t INVALID_BBOX
Definition: SimData.h:261
RoR::tie_t::ti_locked_actor
ActorPtr ti_locked_actor
Definition: SimData.h:506
RoR::collision_box_t::lo
Ogre::Vector3 lo
absolute collision box
Definition: SimData.h:686
RoR::flare_t::blinkdelay_state
bool blinkdelay_state
Definition: SimData.h:613
RoR::ActorLinkingRequestType::HOOK_MOUSE_TOGGLE
@ HOOK_MOUSE_TOGGLE
RoR::node_t::nd_override_mass
bool nd_override_mass
User defined attr; mass is user-specified rather than calculated (override the calculation)
Definition: SimData.h:292
RoR::ACTORSIMATTR_NONE
@ ACTORSIMATTR_NONE
Definition: SimData.h:926
RoR::ActorModifyRequest::~ActorModifyRequest
~ActorModifyRequest()
Definition: SimData.cpp:102
RoR::wheel_t
Definition: SimData.h:399
RoR::NOSHOCK
@ NOSHOCK
not a shock
Definition: SimData.h:99
RoR::hook_t::hk_lock_node
node_t * hk_lock_node
Definition: SimData.h:474
RoR::FreeForceType::DUMMY
@ DUMMY
No force.
RoR::soundsource_t::type
int type
Definition: SimData.h:396
RoR::wheel_t::wh_num_rim_nodes
int wh_num_rim_nodes
Definition: SimData.h:403
RoR::ShockFlags
ShockFlags
Definition: SimData.h:187
RoR::BEAM_NORMAL
@ BEAM_NORMAL
Definition: SimData.h:63
RoR::ActorState::DISPOSED
@ DISPOSED
removed from simulation, still in memory to satisfy pointers.
RoR::soundsource_t::nodenum
NodeNum_t nodenum
Definition: SimData.h:395
RoR::ANIM_FLAG_BTHROTTLE
@ ANIM_FLAG_BTHROTTLE
Definition: SimData.h:164
RoR::soundsource_t::~soundsource_t
~soundsource_t()
Definition: SimData.cpp:92
RoR::SpecialBeam
SpecialBeam
Definition: SimData.h:97
RoR::ActorLinkingRequest::alr_type
ActorLinkingRequestType alr_type
Definition: SimData.h:911
RoR::flare_t::uses_inertia
bool uses_inertia
Only 'flares3'.
Definition: SimData.h:616
RoR::ANIM_FLAG_ALTIMETER
@ ANIM_FLAG_ALTIMETER
Definition: SimData.h:137
RoR::ground_model_t::fx_particle_fade
float fx_particle_fade
fade coefficient
Definition: SimData.h:735
RoR::CmdKeyArray::operator[]
command_t & operator[](int index)
Definition: SimData.h:634
SimConstants.h
RoR::ropable_t::attached_ropes
int attached_ropes
State.
Definition: SimData.h:485
RoR::hook_t::hk_beam
beam_t * hk_beam
Definition: SimData.h:475
RoR::ropable_t::pos
int pos
Index into ar_ropables.
Definition: SimData.h:482
RoR::commandbeam_t::cmb_engine_coupling
float cmb_engine_coupling
Attr from truckfile.
Definition: SimData.h:539
RoR::ActorModifyRequest::Type::RESTORE_SAVED
@ RESTORE_SAVED
RoR::beam_t::strength
float strength
Definition: SimData.h:317
RoR::AeroEngineType::AE_TURBOJET
@ AE_TURBOJET
RoR::shock_t::trigger_boundary_t
float trigger_boundary_t
optional value to tune trigger_switch_state autorelease
Definition: SimData.h:352
RoR::FreeForce::ffc_force_magnitude
float ffc_force_magnitude
Definition: SimData.h:759
RoR::ANIM_FLAG_AOA
@ ANIM_FLAG_AOA
Definition: SimData.h:138
RoR::command_t::trigger_cmdkeyblock_state
bool trigger_cmdkeyblock_state
identifies blocked F-commands for triggers
Definition: SimData.h:562
RoR::ActorLinkingRequestType::HOOK_TOGGLE
@ HOOK_TOGGLE
RoR::flare_t::fl_type
FlareType fl_type
Definition: SimData.h:608
RoR::SHOCK_FLAG_NORMAL
@ SHOCK_FLAG_NORMAL
Definition: SimData.h:189
RoR::hook_t::hook_t
hook_t()
Definition: SimData.cpp:77
RoR::LOCALIZER_VERTICAL
@ LOCALIZER_VERTICAL
Definition: SimData.h:226
RoR::collision_box_t::eventsourcenum
short eventsourcenum
Definition: SimData.h:685
RoR::collision_box_t::hi
Ogre::Vector3 hi
absolute collision box
Definition: SimData.h:687
RoR::ActorLinkingRequestType::HOOK_RESET
@ HOOK_RESET
RoR::ANIM_MODE_AUTOANIMATE
@ ANIM_MODE_AUTOANIMATE
Definition: SimData.h:177
RoR::ACTORSIMATTR_ENGOPTION_BRAKING_TORQUE
@ ACTORSIMATTR_ENGOPTION_BRAKING_TORQUE
How much engine brakes on zero throttle - Param #11 of 'engoption'.
Definition: SimData.h:951
RoR::ACTORSIMATTR_ENGTURBO2_WASTEGATE_THRESHOLD_N
@ ACTORSIMATTR_ENGTURBO2_WASTEGATE_THRESHOLD_N
1 - WgThreshold ~ calculated from Param #10 of 'engturbo2'
Definition: SimData.h:962
RoR::EVENT_BOAT
@ EVENT_BOAT
'boat' ~ Triggered by any node of boats (ActorType::BOAT)
Definition: SimData.h:54
RoR::beam_t::bm_locked_actor
ActorPtr bm_locked_actor
in case p2 is on another actor
Definition: SimData.h:324
RoR::rotator_t::axis2
NodeNum_t axis2
Definition: SimData.h:587
RoR::CollisionBoxPtrVec
std::vector< collision_box_t * > CollisionBoxPtrVec
Definition: SimData.h:700
RoR::ACTORSIMATTR_ENGTURBO2_BOV_ENABLED
@ ACTORSIMATTR_ENGTURBO2_BOV_ENABLED
Blow-off valve - Param #6 of 'engturbo2'.
Definition: SimData.h:958
RoR::ActorLinkingRequestType::HOOK_UNLOCK
@ HOOK_UNLOCK
RoR::PropAnimKeyState
User input state for animated props with 'source:event'.
Definition: SimData.h:621
DEFAULT_BEAM_DIAMETER
static const float DEFAULT_BEAM_DIAMETER
5 centimeters default beam width
Definition: SimConstants.h:52
RoR::FreeForce::ffc_halfb_minmaxposnegstress
float ffc_halfb_minmaxposnegstress
Definition: SimData.h:777
RoR::LOCKED
@ LOCKED
lock locked.
Definition: SimData.h:77
RoR::hook_t::hk_min_length
float hk_min_length
Absolute value in meters.
Definition: SimData.h:472
RoR::EVENT_AVATAR
@ EVENT_AVATAR
'avatar' ~ Triggered by the character only
Definition: SimData.h:50
RoR::ANIM_MODE_ROTA_Y
@ ANIM_MODE_ROTA_Y
Definition: SimData.h:172
RoR::shock_t::dampout
float dampout
shocks2 & shocks3
Definition: SimData.h:360
RoR::rotator_t::axis1
NodeNum_t axis1
rot axis
Definition: SimData.h:586
RoR::ActorSpawnRequest::asr_working_tuneup
TuneupDefPtr asr_working_tuneup
Only filled when editing tuneup via Tuning menu.
Definition: SimData.h:842
BEAM_PLASTIC_COEF_DEFAULT
static const float BEAM_PLASTIC_COEF_DEFAULT
Definition: SimConstants.h:63
RoR::authorinfo_t
Definition: SimData.h:809
RoR::flare_t::nodey
NodeNum_t nodey
Definition: SimData.h:601
RoR::wheel_t::wh_mass
Ogre::Real wh_mass
Total rotational mass of the wheel.
Definition: SimData.h:417
RoR::FreeForce::ffc_target_actor
ActorPtr ffc_target_actor
Definition: SimData.h:765
RoR::FreeForceType
FreeForceType
Definition: SimData.h:743
RoR::ANIM_FLAG_SPEEDO
@ ANIM_FLAG_SPEEDO
Definition: SimData.h:149
RoR::SimpleInertia
Designed to be run on main/rendering loop (FPS)
Definition: CmdKeyInertia.h:72
RoR::ground_model_t::alpha
float alpha
steady-steady
Definition: SimData.h:710
RoR::AnimFlags
AnimFlags
Definition: SimData.h:133
RoR::ANIM_FLAG_EVENT
@ ANIM_FLAG_EVENT
Definition: SimData.h:160
RoR::tie_t::ti_tying
bool ti_tying
State.
Definition: SimData.h:516
RoR::collision_box_t::selfrotated
bool selfrotated
Definition: SimData.h:681
RoR::hook_t
Definition: SimData.h:456
RoR::ActorLinkingRequestType::ROPE_TOGGLE
@ ROPE_TOGGLE
RoR::ActorState::LOCAL_SIMULATED
@ LOCAL_SIMULATED
simulated (local) actor
RoR::ACTORSIMATTR_ENGTURBO2_MAX_RPM
@ ACTORSIMATTR_ENGTURBO2_MAX_RPM
MaxPSI * 10000 ~ calculated from Param #4 of 'engturbo2'.
Definition: SimData.h:956
BITMASK
#define BITMASK(OFFSET)
Definition: BitFlags.h:10
RoR::ActorSpawnRequest::asr_filename
std::string asr_filename
Can be in "Bundle-qualified" format, i.e. "mybundle.zip:myactor.truck".
Definition: SimData.h:835
RoR::node_t::RelPosition
Ogre::Vector3 RelPosition
relative to the local physics origin (one origin per actor) (shaky)
Definition: SimData.h:266
RoR::NOT_DRIVEABLE
@ NOT_DRIVEABLE
not drivable at all
Definition: SimData.h:84
RoR::ground_model_t::fx_particle_velo_factor
float fx_particle_velo_factor
velocity factor
Definition: SimData.h:737
RoR::commandbeam_t::cmb_state
std::shared_ptr< commandbeam_state_t > cmb_state
Definition: SimData.h:553
RoR::FreeForceRequest::ffr_halfb_diameter
double ffr_halfb_diameter
Definition: SimData.h:803
RoR::commandbeam_state_t::auto_moving_mode
int8_t auto_moving_mode
State.
Definition: SimData.h:529
RoR::hook_t::hk_timer_preset
float hk_timer_preset
Definition: SimData.h:471
RoR::FreeForceRequest::ffr_base_actor
int64_t ffr_base_actor
Definition: SimData.h:791
RoR::wheel_t::wh_arg_simple_spring
float wh_arg_simple_spring
Whole wheel or just tire, depending on type.
Definition: SimData.h:431
RoR::FreeForce::ffc_halfb_spring
float ffc_halfb_spring
Definition: SimData.h:768
RoR::collision_box_t
Definition: SimData.h:677
RefCountingObjectPtr< Actor >
RoR::shock_t::sbd_break
float sbd_break
set beam default for breaking threshold
Definition: SimData.h:376
RoR::collision_box_t::unrot
Ogre::Quaternion unrot
rotation
Definition: SimData.h:690
RoR::ANIM_FLAG_TORQUE
@ ANIM_FLAG_TORQUE
Definition: SimData.h:156
RoR::ActorSpawnRequest::Origin::SAVEGAME
@ SAVEGAME
User spawned and part of a savegame.
RoR::ground_model_t::fx_particle_amount
int fx_particle_amount
amount of particles
Definition: SimData.h:731
RoR::FreeForce::ffc_base_node
NodeNum_t ffc_base_node
Definition: SimData.h:761
RoR::flare_t::offsetz
float offsetz
Definition: SimData.h:604
RoR::shock_t::dprogin
float dprogin
shocks2
Definition: SimData.h:363
RoR::EVENT_TRUCK
@ EVENT_TRUCK
'truck' ~ Triggered by any node of land vehicle (ActorType::TRUCK)
Definition: SimData.h:51
RoR::wheel_t::wh_alb_coef
Ogre::Real wh_alb_coef
Sim state; Current anti-lock brake modulation ratio.
Definition: SimData.h:415
RoR::ground_model_t::mc
float mc
sliding friction coefficient
Definition: SimData.h:707
RoR::beam_t::stress
float stress
Definition: SimData.h:318
RoR::collision_box_t::center
Ogre::Vector3 center
center of rotation
Definition: SimData.h:688
RoR::TRG_ENGINE_ACC
@ TRG_ENGINE_ACC
Definition: SimData.h:215
RoR::wheel_t::wh_propulsed
WheelPropulsion wh_propulsed
Definition: SimData.h:410
RoR::tie_t::ti_group
int ti_group
Definition: SimData.h:509
RoR::collcab_rate_t
Definition: SimData.h:381
RoR::ground_model_t::vs
float vs
stribeck velocity (m/s)
Definition: SimData.h:709
RoR::ActorSpawnRequest
Definition: SimData.h:817
RoR::collcab_rate_t::distance
int distance
Definition: SimData.h:384
RoR::ACTORSIMATTR_ENGTURBO2_NUM_TURBOS
@ ACTORSIMATTR_ENGTURBO2_NUM_TURBOS
Number of turbos - Param #3 of 'engturbo2'.
Definition: SimData.h:955
RoR::wheel_t::wh_arg_rim_damping
float wh_arg_rim_damping
Not used by 'wheels' (1) and 'meshwheels' (1).
Definition: SimData.h:430
RoR::beam_t::refL
float refL
reference length
Definition: SimData.h:330
RoR::beam_t::initial_beam_strength
float initial_beam_strength
for reset
Definition: SimData.h:334
RoR::ANIM_FLAG_RPM
@ ANIM_FLAG_RPM
Definition: SimData.h:144
RoR::tie_t::ti_tied
bool ti_tied
State.
Definition: SimData.h:515
RoR::ropable_t::node
node_t * node
Definition: SimData.h:481
BEAM_BREAK
static const float BEAM_BREAK
Definition: SimConstants.h:60
RoR::ANIM_FLAG_PERMANENT
@ ANIM_FLAG_PERMANENT
Definition: SimData.h:165
RoR::HYDRO_FLAG_REV_RUDDER
@ HYDRO_FLAG_REV_RUDDER
Definition: SimData.h:129
RoR::FreeForce::ffc_id
FreeForceID_t ffc_id
Definition: SimData.h:757
RoR::FreeForceRequest::ffr_force_const_direction
Ogre::Vector3 ffr_force_const_direction
Definition: SimData.h:794
RoR::ROPE
@ ROPE
Definition: SimData.h:105
RoR::CmdKeyArray::m_virtualkey
std::unordered_map< int, command_t > m_virtualkey
Negative-indexed commandkeys.
Definition: SimData.h:652
RoR::ActorModifyRequest::amr_actor
ActorInstanceID_t amr_actor
Definition: SimData.h:875
RoR::wheel_t::wh_last_retorque
Ogre::Real wh_last_retorque
Last external forces (friction, ...)
Definition: SimData.h:420
RoR::ActorModifyRequest::Type::RESET_ON_INIT_POS
@ RESET_ON_INIT_POS
RoR::SHOCK_FLAG_LACTIVE
@ SHOCK_FLAG_LACTIVE
Definition: SimData.h:190
RoR::collision_box_t::event_filter
CollisionEventFilter event_filter
Definition: SimData.h:684
RoR::FreeForce::ffc_type
FreeForceType ffc_type
Definition: SimData.h:758
RoR::ActorSpawnRequest::asr_config
Ogre::String asr_config
Definition: SimData.h:836
RoR::wheel_t::debug_force
Ogre::Vector3 debug_force
Definition: SimData.h:443
RoR::ANIM_MODE_BOUNCE
@ ANIM_MODE_BOUNCE
Definition: SimData.h:179
RoR::beam_t
Simulation: An edge in the softbody structure.
Definition: SimData.h:304
RoR::command_t::triggerInputValue
float triggerInputValue
Definition: SimData.h:560
RoR::FREEFORCEID_INVALID
static const FreeForceID_t FREEFORCEID_INVALID
Definition: ForwardDeclarations.h:68
RoR::PRELOCK
@ PRELOCK
prelocking, attraction forces in action
Definition: SimData.h:76
RoR::PropAnimKeyState::event_id
events event_id
Definition: SimData.h:626
RoR::SHOCK_FLAG_TRG_HOOK_LOCK
@ SHOCK_FLAG_TRG_HOOK_LOCK
Definition: SimData.h:201
RoR::wheel_t::debug_slip
Ogre::Vector3 debug_slip
Definition: SimData.h:442
RoR::shock_t::dfastin
float dfastin
shocks3
Definition: SimData.h:369
RoR::EV_MODE_LAST
@ EV_MODE_LAST
Definition: InputEngine.h:406
RoR::collision_box_t::rehi
Ogre::Vector3 rehi
relative collision box
Definition: SimData.h:695
RoR::CommandkeyID_t
int CommandkeyID_t
Index into Actor::ar_commandkeys (BEWARE: indexed 1-MAX_COMMANDKEYS, 0 is invalid value,...
Definition: ForwardDeclarations.h:82
RoR::FreeForceType::TOWARDS_COORDS
@ TOWARDS_COORDS
Constant force directed towards ffc_target_coords
RoR::ActorInstanceID_t
int ActorInstanceID_t
Unique sequentially generated ID of an actor in session. Use ActorManager::GetActorById()
Definition: ForwardDeclarations.h:38
RoR::FreeForce::ffc_halfb_stress
float ffc_halfb_stress
Definition: SimData.h:776
RoR::ropable_t::attached_ties
int attached_ties
State.
Definition: SimData.h:484
RoR::wheel_t::wh_torque
Ogre::Real wh_torque
Internal physics state; Do not read from this.
Definition: SimData.h:418
RoR::rope_t::rp_locked_ropable
ropable_t * rp_locked_ropable
Definition: SimData.h:497
RoR::wheel_t::wh_width
float wh_width
Definition: SimData.h:422
RoR::ActorModifyRequest::amr_softrespawn_rotation
Ogre::Quaternion amr_softrespawn_rotation
Rotation to use with SOFT_RESPAWN; use TObjParser::CalcRotation() to calculate quaternion from XYZ li...
Definition: SimData.h:882
CmdKeyInertia.h
RoR::commandbeam_t::cmb_is_contraction
bool cmb_is_contraction
Attribute defined at spawn.
Definition: SimData.h:545
RoR::UniqueCommandKeyPair::uckp_key2
CommandkeyID_t uckp_key2
Definition: SimData.h:662
BitFlags.h
Bit operations.
RoR::NodeNum_t
uint16_t NodeNum_t
Node position within Actor::ar_nodes; use RoR::NODENUM_INVALID as empty value.
Definition: ForwardDeclarations.h:54
RoR::UNLOCKED
@ UNLOCKED
lock not locked
Definition: SimData.h:75
RoR::HYDRO_FLAG_AILERON
@ HYDRO_FLAG_AILERON
Definition: SimData.h:125
RoR::wheel_t::wh_rim_radius
Ogre::Real wh_rim_radius
Definition: SimData.h:412
RoR::hook_t::hk_locked
HookState hk_locked
Definition: SimData.h:461
RoR::FreeForceRequest::ffr_base_node
int64_t ffr_base_node
Definition: SimData.h:792
RoR::rotator_t::engine_coupling
float engine_coupling
Definition: SimData.h:592
DEFAULT_DETACHER_GROUP
static const int DEFAULT_DETACHER_GROUP
Definition: SimConstants.h:80
RoR::beam_t::bounded
SpecialBeam bounded
Definition: SimData.h:321
RoR::tie_t::ti_min_length
float ti_min_length
Proportional to orig; length.
Definition: SimData.h:512
RoR::tie_t::ti_contract_speed
float ti_contract_speed
Definition: SimData.h:510
RoR::beam_t::d
float d
damping factor
Definition: SimData.h:312
RoR::rotator_t::debug_aerror
float debug_aerror
Definition: SimData.h:594
RoR::ACTORSIMATTR_ENGOPTION_ENGINE_INERTIA
@ ACTORSIMATTR_ENGOPTION_ENGINE_INERTIA
Definition: SimData.h:941
RoR::ActorModifyRequest
Definition: SimData.h:857
RoR::FreeForce::ffc_force_const_direction
Ogre::Vector3 ffc_force_const_direction
Expected to be normalized; only effective with FreeForceType::CONSTANT
Definition: SimData.h:763
RoR::authorinfo_t::name
Ogre::String name
Definition: SimData.h:813
RoR::ground_model_t::fx_particle_ttl
float fx_particle_ttl
Definition: SimData.h:738
RoR::shock_t::sbd_damp
float sbd_damp
set beam default for damping
Definition: SimData.h:375
RoR::commandbeam_state_t
Definition: SimData.h:525
RoR::collision_box_t::selfcenter
Ogre::Vector3 selfcenter
center of self rotation
Definition: SimData.h:691
RoR::shock_t::trigger_cmdshort
int trigger_cmdshort
F-key for trigger injection shortbound-check.
Definition: SimData.h:354
RoR::collision_box_t::relo
Ogre::Vector3 relo
relative collision box
Definition: SimData.h:694
RoR::commandbeam_t::cmb_center_length
float cmb_center_length
Attr computed at spawn.
Definition: SimData.h:540
RoR::commandbeam_t::cmb_needs_engine
bool cmb_needs_engine
Attribute defined in truckfile.
Definition: SimData.h:547
RoR::ActorSpawnRequest::asr_tuneup_entry
CacheEntryPtr asr_tuneup_entry
Only filled when user selected a saved/downloaded .tuneup mod in SelectorUI.
Definition: SimData.h:841
RoR::rotator_t::needs_engine
bool needs_engine
Definition: SimData.h:583
RoR::wheel_t::wh_arg_media1
std::string wh_arg_media1
Definition: SimData.h:434
RoR::shock_t::beamid
int beamid
Definition: SimData.h:347
RoR::ANIM_FLAG_CLUTCH
@ ANIM_FLAG_CLUTCH
Definition: SimData.h:147
RoR::shock_t::shock_t
shock_t()
Definition: SimData.h:345
RoR::ACTORSIMATTR_ENGTURBO2_INERTIA_FACTOR
@ ACTORSIMATTR_ENGTURBO2_INERTIA_FACTOR
Time to spool up - Param #2 of 'engturbo2'.
Definition: SimData.h:954
RoR::ActorLinkingRequestType::INVALID
@ INVALID
RoR::hook_t::hk_autolock
bool hk_autolock
Definition: SimData.h:465
RoR::ACTORINSTANCEID_INVALID
static const ActorInstanceID_t ACTORINSTANCEID_INVALID
Definition: ForwardDeclarations.h:39
RoR::hook_t::hk_selflock
bool hk_selflock
Definition: SimData.h:464
RoR::ActorSpawnRequest::asr_cache_entry
CacheEntryPtr asr_cache_entry
Optional, overrides 'asr_filename' and 'asr_cache_entry_num'.
Definition: SimData.h:834
RoR::wheel_t::wh_axis_node_1
node_t * wh_axis_node_1
Definition: SimData.h:409
RoR::AeroEngineType
AeroEngineType
Definition: SimData.h:248
RoR::hydrobeam_t::hb_inertia
RoR::CmdKeyInertia hb_inertia
Definition: SimData.h:578
RoR::flare_t::nodex
NodeNum_t nodex
Definition: SimData.h:600
RoR::ACTORSIMATTR_ENGTURBO2_WASTEGATE_THRESHOLD_P
@ ACTORSIMATTR_ENGTURBO2_WASTEGATE_THRESHOLD_P
1 + WgThreshold ~ calculated from Param #10 of 'engturbo2'
Definition: SimData.h:963
RoR::shock_t::trigger_switch_state
float trigger_switch_state
needed to avoid doubleswitch, bool and timer in one
Definition: SimData.h:351
RoR::hydrobeam_t
< beams updating length based on simulation variables, generally known as actuators.
Definition: SimData.h:570
RoR::wheel_t::wh_beam_start
int wh_beam_start
BeamID to export 'set_beam_defaults' parameters from.
Definition: SimData.h:436
RoR::ANIM_FLAG_FLAP
@ ANIM_FLAG_FLAP
Definition: SimData.h:139
RoR::tie_t::ti_max_stress
float ti_max_stress
Definition: SimData.h:511
RoR::ActorState::LOCAL_SLEEPING
@ LOCAL_SLEEPING
sleeping (local) actor
RoR::node_t::nd_cab_node
bool nd_cab_node
Attr; This node is part of collision triangle.
Definition: SimData.h:282
RoR::commandbeam_t::cmb_speed
float cmb_speed
Attr; Rate of contraction/extension.
Definition: SimData.h:541
RoR::BEAM_VIRTUAL
@ BEAM_VIRTUAL
Excluded from mass calculations, visuals permanently disabled.
Definition: SimData.h:65
RoR::node_t::nd_no_mouse_grab
bool nd_no_mouse_grab
Attr; User-defined.
Definition: SimData.h:294
RoR::FreeForce::ffc_halfb_strength
float ffc_halfb_strength
Breaking threshold.
Definition: SimData.h:771
RoR::ActorLinkingRequestType
ActorLinkingRequestType
Definition: SimData.h:885
RoR::FreeForceID_t
int FreeForceID_t
Unique sequentially generated ID of FreeForce; use ActorManager::GetFreeForceNextId().
Definition: ForwardDeclarations.h:67
RoR::node_t::node_t
node_t()
Definition: SimData.h:263
RoR::shock_t::trigger_cmdlong
int trigger_cmdlong
F-key for trigger injection longbound-check.
Definition: SimData.h:353
RoR::LOCALIZER_VOR
@ LOCALIZER_VOR
Definition: SimData.h:229
RoR::FreeForceType::CONSTANT
@ CONSTANT
Constant force given by direction and magnitude.
RoR::ACTORSIMATTR_ENGINE_TORQUE
@ ACTORSIMATTR_ENGINE_TORQUE
Engine torque in newton-meters (N/m) - Param #3 of 'engine'.
Definition: SimData.h:936
RoR::wheel_t::wh_net_rp
float wh_net_rp
Definition: SimData.h:421
RoR::FreeForceRequest::ffr_halfb_deform
double ffr_halfb_deform
Definition: SimData.h:801
RoR::node_t::pos
NodeNum_t pos
This node's index in Actor::ar_nodes array.
Definition: SimData.h:277
RoR::FreeForceRequest::ffr_target_coords
Ogre::Vector3 ffr_target_coords
Definition: SimData.h:795
RoR::wheel_t::wh_arg_num_rays
int wh_arg_num_rays
Definition: SimData.h:427
RoR::node_t::nd_tyre_node
bool nd_tyre_node
Attr; This node is part of a tyre (note some wheel types don't use rim nodes at all)
Definition: SimData.h:284
RoR::ActorModifyRequest::amr_addonpart_fname
std::string amr_addonpart_fname
Fallback method in case CacheEntry doesn't exist anymore - that means mod was uninstalled in the mean...
Definition: SimData.h:880
RoR::BLINK_RIGHT
@ BLINK_RIGHT
Definition: SimData.h:117
RoR::collision_box_t::refined
bool refined
Definition: SimData.h:680
RoR::ANIM_FLAG_VVI
@ ANIM_FLAG_VVI
Definition: SimData.h:136
RoR::ActorLinkingRequestType::ROPE_RESET
@ ROPE_RESET
RoR::BLINK_WARN
@ BLINK_WARN
Definition: SimData.h:118
RoR::beam_t::debug_k
float debug_k
debug shock spring_rate
Definition: SimData.h:338
RoR::ACTORSIMATTR_ENGOPTION_STALL_RPM
@ ACTORSIMATTR_ENGOPTION_STALL_RPM
RPM where engine stalls - Param #7 of 'engoption'.
Definition: SimData.h:947
RoR::ACTORSIMATTR_TC_PULSE_TIME
@ ACTORSIMATTR_TC_PULSE_TIME
Pulse duration in seconds, safe values <0.00005 - 1>
Definition: SimData.h:930
RoR::shock_t::splitout
float splitout
shocks3
Definition: SimData.h:370
RoR::wheeldetacher_t::wd_detacher_group
int wd_detacher_group
Definition: SimData.h:450
RoR::HookState
HookState
Definition: SimData.h:73
RoR::command_t
Definition: SimData.h:556
RoR::flare_t::intensity
float intensity
Definition: SimData.h:615
RoR::command_t::rotator_inertia
RoR::CmdKeyInertia rotator_inertia
Definition: SimData.h:566
RoR::wheel_t::wh_near_attach_node
node_t * wh_near_attach_node
Definition: SimData.h:407
RoR::ActorLinkingRequest::alr_rope_group
int alr_rope_group
Definition: SimData.h:918
RoR::AeroEngineType::AE_UNKNOWN
@ AE_UNKNOWN
RoR::ANIM_FLAG_AESTATUS
@ ANIM_FLAG_AESTATUS
Definition: SimData.h:155
RoR::SHOCK2
@ SHOCK2
shock2
Definition: SimData.h:101
RoR::hook_t::hk_nodisable
bool hk_nodisable
Definition: SimData.h:466
RoR::node_t::nd_loaded_mass
bool nd_loaded_mass
User-defined attr; mass is calculated from 'globals/loaded-mass' rather than 'globals/dry-mass' - set...
Definition: SimData.h:290
RoR::ground_model_t::fx_type
int fx_type
Definition: SimData.h:725
RoR::shock_t::shock_precompression
float shock_precompression
Only for export.
Definition: SimData.h:378
Application.h
Central state/object manager and communications hub.
RoR::FreeForce::ffc_base_actor
ActorPtr ffc_base_actor
Definition: SimData.h:760
RoR::node_t::nd_last_collision_force
Ogre::Vector3 nd_last_collision_force
Physics state; last collision force.
Definition: SimData.h:299
RoR::SHOCK_FLAG_TRG_CONTINUOUS
@ SHOCK_FLAG_TRG_CONTINUOUS
Definition: SimData.h:202
RoR::FlareType
FlareType
Definition: Application.h:500
RoR::command_t::description
Ogre::String description
Definition: SimData.h:565
RoR::node_t
Physics: A vertex in the softbody structure.
Definition: SimData.h:259
RoR::commandbeam_t::cmb_boundary_length
float cmb_boundary_length
Attr; Maximum/minimum length proportional to orig. len.
Definition: SimData.h:542
RoR::EVENT_NONE
@ EVENT_NONE
Invalid value.
Definition: SimData.h:48
RoR::hook_t::hk_maxforce
float hk_maxforce
Definition: SimData.h:467
RoR::ACTORSIMATTR_ENGTURBO2_WASTEGATE_MAX_PSI
@ ACTORSIMATTR_ENGTURBO2_WASTEGATE_MAX_PSI
Definition: SimData.h:961
RoR::FreeForce::ffc_halfb_damp
float ffc_halfb_damp
Definition: SimData.h:769
RoR::collision_box_t::camforced
bool camforced
Definition: SimData.h:682
RoR::ground_model_t::name
char name[256]
Definition: SimData.h:727
RoR::rotator_t::debug_rate
float debug_rate
Definition: SimData.h:593
RoR::node_t::friction_coef
Ogre::Real friction_coef
Definition: SimData.h:273
RoR::shock_t::springout
float springout
shocks2 & shocks3
Definition: SimData.h:359
RoR::shock_t::sprogout
float sprogout
shocks2
Definition: SimData.h:364
RoR::CmdKeyInertia
Designed to be run in physics loop (2khz)
Definition: CmdKeyInertia.h:45
RoR::AIRPLANE
@ AIRPLANE
its an airplane
Definition: SimData.h:86
RoR::rotator_t::tolerance
float tolerance
Definition: SimData.h:591
RoR::FreeForceRequest::ffr_force_magnitude
double ffr_force_magnitude
Definition: SimData.h:790
RoR::commandbeam_state_t::pressed_center_mode
bool pressed_center_mode
State.
Definition: SimData.h:532
RoR::HYDRO_FLAG_ELEVATOR
@ HYDRO_FLAG_ELEVATOR
Definition: SimData.h:127
RoR::FreeForce::ffc_halfb_L
float ffc_halfb_L
Length at rest, including permanent deformations.
Definition: SimData.h:775
RoR::FreeForce
Global force affecting particular (base) node of particular (base) actor; added ad-hoc by scripts.
Definition: SimData.h:754
RoR::node_t::buoyancy
Ogre::Real buoyancy
Definition: SimData.h:272
RoR::beam_t::beam_t
beam_t()
Definition: SimData.cpp:42
RoR::wheel_t::wh_speed
Ogre::Real wh_speed
Current wheel speed in m/s.
Definition: SimData.h:413
RoR::ANIM_FLAG_AETORQUE
@ ANIM_FLAG_AETORQUE
Definition: SimData.h:153
RoR::ground_model_t::basename
char basename[256]
Definition: SimData.h:728
RoR::ACTORSIMATTR_ENGINE_GEAR_RATIOS_ARRAY
@ ACTORSIMATTR_ENGINE_GEAR_RATIOS_ARRAY
Gearbox - Format: "<reverse_gear> <neutral_gear> <forward_gear 1> [<forward gear 2>]....
Definition: SimData.h:938
RoR::BlinkType
BlinkType
< Turn signal
Definition: SimData.h:113
RoR::commandbeam_t::cmb_is_1press
bool cmb_is_1press
Attribute defined in truckfile.
Definition: SimData.h:550
RoR::tie_t::~tie_t
~tie_t()
Definition: SimData.cpp:72
RoR::hook_t::hk_locked_actor
ActorPtr hk_locked_actor
Definition: SimData.h:476
RoR::beam_t::plastic_coef
float plastic_coef
Definition: SimData.h:319
RoR::SHOCK_FLAG_RACTIVE
@ SHOCK_FLAG_RACTIVE
Definition: SimData.h:191
RoR::collision_box_t::campos
Ogre::Vector3 campos
camera position
Definition: SimData.h:696
RoR::ANIM_FLAG_ROLL
@ ANIM_FLAG_ROLL
Definition: SimData.h:141
RoR::ActorSpawnRequest::net_stream_id
int net_stream_id
Definition: SimData.h:849
RoR::ACTORSIMATTR_ENGTURBO2_WASTEGATE_ENABLED
@ ACTORSIMATTR_ENGTURBO2_WASTEGATE_ENABLED
Definition: SimData.h:960
RoR::BLINK_LEFT
@ BLINK_LEFT
Definition: SimData.h:116
RoR::SUPPORTBEAM
@ SUPPORTBEAM
Definition: SimData.h:104
RoR::ActorSpawnRequest::Origin::TERRN_DEF
@ TERRN_DEF
Preloaded with terrain.
RoR::ActorSpawnRequest::asr_terrn_machine
bool asr_terrn_machine
This is a fixed machinery.
Definition: SimData.h:852
RoR::beam_t::bm_type
BeamType bm_type
Definition: SimData.h:322
RoR::ActorSimAttr
ActorSimAttr
Parameter to Actor::setSimAttribute() and Actor::getSimAttribute(); allows advanced users to tweak ph...
Definition: SimData.h:924
RoR::ActorModifyRequest::amr_softrespawn_position
Ogre::Vector3 amr_softrespawn_position
Position to use with SOFT_RESPAWN.
Definition: SimData.h:881
RoR::wheel_t::wh_avg_speed
Ogre::Real wh_avg_speed
Internal physics state; Do not read from this.
Definition: SimData.h:414
RoR::ACTORSIMATTR_ENGOPTION_CLUTCH_FORCE
@ ACTORSIMATTR_ENGOPTION_CLUTCH_FORCE
Definition: SimData.h:943
RoR::ActorSpawnRequest::Origin::UNKNOWN
@ UNKNOWN
RoR::ActorSpawnRequest::asr_skin_entry
CacheEntryPtr asr_skin_entry
Definition: SimData.h:840
RoR::wheeldetacher_t
Definition: SimData.h:447
RoR::ground_model_t::t2
float t2
hydrodynamic friction (s/m)
Definition: SimData.h:708
RoR::hydrobeam_t::hb_beam_index
uint16_t hb_beam_index
Index to Actor::ar_beams array.
Definition: SimData.h:572
RoR::tie_t::ti_beam
beam_t * ti_beam
Definition: SimData.h:507
RoR::node_t::nd_last_collision_slip
Ogre::Vector3 nd_last_collision_slip
Physics state; last collision slip vector.
Definition: SimData.h:298
RoR::ActorSpawnRequest::asr_net_username
std::string asr_net_username
Definition: SimData.h:845
RoR::wheel_t::debug_rpm
float debug_rpm
Definition: SimData.h:439
RoR::ActorSpawnRequest::Origin::AI
@ AI
Script controlled.
RoR::ActorModifyRequest::amr_saved_state
std::shared_ptr< rapidjson::Document > amr_saved_state
Definition: SimData.h:878
RoR::wheeldetacher_t::wd_wheel_id
int wd_wheel_id
Definition: SimData.h:449
RoR::ActorState
ActorState
Definition: SimData.h:238
RoR::wheel_t::debug_scaled_cforce
Ogre::Vector3 debug_scaled_cforce
Definition: SimData.h:444
RoR::wheel_t::wh_arg_simple_damping
float wh_arg_simple_damping
Whole wheel or just tire, depending on type.
Definition: SimData.h:432
RoR::ground_model_t::ms
float ms
static friction coefficient
Definition: SimData.h:706
RoR::ACTORSIMATTR_ENGTURBO2_BOV_MIN_PSI
@ ACTORSIMATTR_ENGTURBO2_BOV_MIN_PSI
Blow-off valve PSI threshold - Param #7 of 'engturbo2'.
Definition: SimData.h:959
RoR::ActorLinkingRequestType::TIE_RESET
@ TIE_RESET
RoR::collision_box_t::selfrot
Ogre::Quaternion selfrot
self rotation
Definition: SimData.h:692
RoR::SHOCK_FLAG_TRG_CMD_SWITCH
@ SHOCK_FLAG_TRG_CMD_SWITCH
Definition: SimData.h:197
RoR::ANIM_FLAG_BRAKE
@ ANIM_FLAG_BRAKE
Definition: SimData.h:146
RoR::AnimModes
AnimModes
Definition: SimData.h:169
RoR::node_t::nd_has_mesh_contact
bool nd_has_mesh_contact
Physics state.
Definition: SimData.h:288
RoR::UniqueCommandKeyPair::uckp_description
std::string uckp_description
Definition: SimData.h:660
RoR::authorinfo_t::email
Ogre::String email
Definition: SimData.h:814
RoR::wheel_t::wh_arg_rim_spring
float wh_arg_rim_spring
Not used by 'wheels' (1) and 'meshwheels' (1).
Definition: SimData.h:429
RoR::ANIM_MODE_OFFSET_Y
@ ANIM_MODE_OFFSET_Y
Definition: SimData.h:175
RoR::authorinfo_t::type
Ogre::String type
Definition: SimData.h:812
RoR::tie_t::tie_t
tie_t()
Definition: SimData.cpp:62
RoR::SHOCK_FLAG_ISSHOCK3
@ SHOCK_FLAG_ISSHOCK3
Definition: SimData.h:193
RoR::flare_t::snode
Ogre::SceneNode * snode
Definition: SimData.h:605
RoR::ANIM_FLAG_PBRAKE
@ ANIM_FLAG_PBRAKE
Definition: SimData.h:150
RoR::hydrobeam_t::hb_flags
BitMask_t hb_flags
Only for 'hydros'.
Definition: SimData.h:575
RoR::shock_t::dslowout
float dslowout
shocks3
Definition: SimData.h:371
RoR::ANIM_FLAG_ARUDDER
@ ANIM_FLAG_ARUDDER
Definition: SimData.h:162
RoR::hydrobeam_t::hb_anim_flags
BitMask_t hb_anim_flags
Only for 'animators'.
Definition: SimData.h:576
RoR::wheel_t::wh_arm_node
node_t * wh_arm_node
Definition: SimData.h:406
RoR::beam_t::debug_d
float debug_d
debug shock damping
Definition: SimData.h:339
RoR::PropAnimKeyState::anim_active
bool anim_active
Definition: SimData.h:625
RoR::beam_t::bm_inter_actor
bool bm_inter_actor
in case p2 is on another actor
Definition: SimData.h:323
RoR::rope_t
Definition: SimData.h:489
RoR::node_t::volume_coef
Ogre::Real volume_coef
Definition: SimData.h:275
RoR::hook_t::~hook_t
~hook_t()
Definition: SimData.cpp:82
RoR::wheel_t::wh_radius
Ogre::Real wh_radius
Definition: SimData.h:411
RoR::SHOCK_FLAG_TRG_ENGINE
@ SHOCK_FLAG_TRG_ENGINE
Definition: SimData.h:203
RoR::TRG_ENGINE_SHIFTDOWN
@ TRG_ENGINE_SHIFTDOWN
Definition: SimData.h:218
RoR::flare_t::controlnumber
int controlnumber
Only 'u' type flares, valid values 0-9, maps to EV_TRUCK_LIGHTTOGGLE01 to 10.
Definition: SimData.h:609
RoR::ACTORSIMATTR_ENGTURBO2_ANTILAG_CHANCE
@ ACTORSIMATTR_ENGTURBO2_ANTILAG_CHANCE
Definition: SimData.h:965
RoR::ACTORSIMATTR_ENGOPTION_SHIFT_TIME
@ ACTORSIMATTR_ENGOPTION_SHIFT_TIME
Definition: SimData.h:944
RoR::authorinfo_t::id
int id
Definition: SimData.h:811
RoR::FreeForceRequest::ffr_halfb_spring
double ffr_halfb_spring
Definition: SimData.h:799
RoR::UniqueCommandKeyPair
UI helper for displaying command control keys to user.
Definition: SimData.h:658
RoR::FreeForceRequest
Common for ADD and MODIFY requests; tailored for use with AngelScript thru GameScript::pushMessage().
Definition: SimData.h:783
RoR::ActorModifyRequest::Type::SOFT_RESPAWN
@ SOFT_RESPAWN
Like hard reset, but positions the actor like spawn process does - using the relative positions from ...
RoR::ground_model_t::flow_behavior_index
float flow_behavior_index
if flow_behavior_index<1 then liquid is Pseudoplastic (ketchup, whipped cream, paint) if =1 then liqu...
Definition: SimData.h:719
RoR::ActorLinkingRequest::alr_tie_group
int alr_tie_group
Definition: SimData.h:916
RoR::ANIM_MODE_NOFLIP
@ ANIM_MODE_NOFLIP
Definition: SimData.h:178
RoR::beam_t::debug_v
float debug_v
debug shock velocity
Definition: SimData.h:340
RoR::ANIM_FLAG_AEPITCH
@ ANIM_FLAG_AEPITCH
Definition: SimData.h:154
RoR::node_t::nd_rim_node
bool nd_rim_node
Attr; This node is part of a rim (only wheel types with separate rim nodes)
Definition: SimData.h:283
RoR::wheel_t::wh_is_detached
bool wh_is_detached
Definition: SimData.h:423
RoR::ground_model_t::fx_particle_timedelta
float fx_particle_timedelta
delta for particle animation
Definition: SimData.h:736
RoR::ActorModifyRequest::amr_addonpart
CacheEntryPtr amr_addonpart
Primary method of specifying cache entry.
Definition: SimData.h:879
RoR::FreeForce::ffc_halfb_diameter
float ffc_halfb_diameter
Definition: SimData.h:772
RoR::HYDRO_FLAG_RUDDER
@ HYDRO_FLAG_RUDDER
Definition: SimData.h:126
RoR::hook_t::hk_lockrange
float hk_lockrange
Definition: SimData.h:468
RoR::beam_t::k
float k
tensile spring
Definition: SimData.h:311
RoR::BEAM_HYDRO
@ BEAM_HYDRO
Definition: SimData.h:64
RoR::flare_t
Definition: SimData.h:597
RoR::tie_t
Definition: SimData.h:501
RoR::ACTORSIMATTR_ENGTURBO2_ANTILAG_MIN_RPM
@ ACTORSIMATTR_ENGTURBO2_ANTILAG_MIN_RPM
Definition: SimData.h:966
RoR::wheel_t::wh_last_torque
Ogre::Real wh_last_torque
Last internal forces (engine / brakes / diffs)
Definition: SimData.h:419
RoR::node_t::nd_has_ground_contact
bool nd_has_ground_contact
Physics state.
Definition: SimData.h:287
RoR::rope_t::rope_t
rope_t()
Definition: SimData.cpp:52
RoR::SHOCK_FLAG_TRG_CMD_BLOCKER
@ SHOCK_FLAG_TRG_CMD_BLOCKER
Definition: SimData.h:198
RoR::TRIGGER
@ TRIGGER
trigger
Definition: SimData.h:103
RoR::node_t::node_t
node_t(size_t _pos)
Definition: SimData.h:264
RoR::ActorSpawnRequest::ActorSpawnRequest
ActorSpawnRequest()
Definition: SimData.cpp:30
RoR::ActorModifyRequest::Type::SOFT_RESET
@ SOFT_RESET
RoR::LOCALIZER_HORIZONTAL
@ LOCALIZER_HORIZONTAL
Definition: SimData.h:227
RoR::PropAnimKeyState::event_active_prev
bool event_active_prev
Definition: SimData.h:624
RoR::beam_t::longbound
float longbound
Definition: SimData.h:329
RoR::ActorModifyRequest::Type::INVALID
@ INVALID
RoR::beam_t::~beam_t
~beam_t()
Definition: SimData.cpp:47
RoR::commandbeam_t
Definition: SimData.h:536
RoR::BLINK_NONE
@ BLINK_NONE
Definition: SimData.h:115
RoR::beam_t::maxnegstress
float maxnegstress
Definition: SimData.h:316
RoR::collision_box_t::rot
Ogre::Quaternion rot
rotation
Definition: SimData.h:689
RoR::HYDRO_FLAG_REV_ELEVATOR
@ HYDRO_FLAG_REV_ELEVATOR
Definition: SimData.h:130
RoR::ActorSpawnRequest::asr_debugview
int asr_debugview
Definition: SimData.h:844
RoR::FreeForceRequest::ffr_halfb_damp
double ffr_halfb_damp
Definition: SimData.h:800
RoR::beam_t::minmaxposnegstress
float minmaxposnegstress
Definition: SimData.h:314
RoR::FreeForceType::TOWARDS_NODE
@ TOWARDS_NODE
Constant force directed towards ffc_target_node
RoR::ground_model_t::fluid_density
float fluid_density
Density of liquid.
Definition: SimData.h:713
RoR::wheel_t::wh_axis_node_0
node_t * wh_axis_node_0
Definition: SimData.h:408
RoR::collision_box_t::selfunrot
Ogre::Quaternion selfunrot
self rotation
Definition: SimData.h:693
RoR::shock_t::dampin
float dampin
shocks2 & shocks3
Definition: SimData.h:358
DEFAULT_SPRING
static const float DEFAULT_SPRING
Definition: SimConstants.h:48
RoR::flare_t::blinkdelay_curr
float blinkdelay_curr
Definition: SimData.h:612
RoR::ropable_t::group
int group
Definition: SimData.h:483
RoR::hook_t::hk_lockgroup
int hk_lockgroup
Definition: SimData.h:463
RoR::LocalizerType
LocalizerType
Definition: SimData.h:224
RoR::beam_t::detacher_group
int detacher_group
Attribute: detacher group number (integer)
Definition: SimData.h:320
RoR::ANIM_FLAG_PITCH
@ ANIM_FLAG_PITCH
Definition: SimData.h:142
RoR::TRG_ENGINE_BRAKE
@ TRG_ENGINE_BRAKE
Definition: SimData.h:214
RoR::ground_model_t
Surface friction properties.
Definition: SimData.h:703
RoR::ground_model_t::drag_anisotropy
float drag_anisotropy
Upwards/Downwards drag anisotropy.
Definition: SimData.h:723
RoR::tie_t::ti_locked_ropable
ropable_t * ti_locked_ropable
Definition: SimData.h:508
RoR::wheel_t::debug_vel
Ogre::Vector3 debug_vel
Definition: SimData.h:441
RoR::command_t::commandValueState
int commandValueState
Definition: SimData.h:558
RoR::SHOCK_FLAG_TRG_HOOK_UNLOCK
@ SHOCK_FLAG_TRG_HOOK_UNLOCK
Definition: SimData.h:200
RoR::ActorLinkingRequest::alr_actor_instance_id
ActorInstanceID_t alr_actor_instance_id
Definition: SimData.h:910
RoR::commandbeam_state_t::auto_move_lock
bool auto_move_lock
State.
Definition: SimData.h:533
RoR::TRG_ENGINE_CLUTCH
@ TRG_ENGINE_CLUTCH
Definition: SimData.h:213
RoR::flare_t::light
Ogre::Light * light
Definition: SimData.h:607
RoR::command_t::beams
std::vector< commandbeam_t > beams
Definition: SimData.h:563
RoR::beam_t::p2
node_t * p2
Definition: SimData.h:310
RoR::AeroEngineType::AE_XPROP
@ AE_XPROP
RoR::wheel_t::wh_arg_side
WheelSide wh_arg_side
Only for 'meshwheels*' and 'flexbodywheels'.
Definition: SimData.h:433
RoR::node_t::nd_no_ground_contact
bool nd_no_ground_contact
User-defined attr; node ignores contact with ground.
Definition: SimData.h:291
RoR::ActorSpawnRequest::net_source_id
int net_source_id
Definition: SimData.h:848
DEFAULT_DAMP
static const float DEFAULT_DAMP
Definition: SimConstants.h:49
RoR::ACTORSIMATTR_ENGTURBO2_ENGINE_RPM_OP
@ ACTORSIMATTR_ENGTURBO2_ENGINE_RPM_OP
Engine RPM threshold for turbo to operate - Param #5 of 'engturbo2'.
Definition: SimData.h:957
RoR::rotator_t::angle
float angle
Definition: SimData.h:588
RoR::commandbeam_t::cmb_is_1press_center
bool cmb_is_1press_center
Attribute defined in truckfile.
Definition: SimData.h:551
RoR::wheel_t::wh_tc_coef
Ogre::Real wh_tc_coef
Sim state; Current traction control modulation ratio.
Definition: SimData.h:416
RoR::ActorLinkingRequest::alr_hook_mousenode
NodeNum_t alr_hook_mousenode
Definition: SimData.h:914
RoR::ANIM_FLAG_TURBO
@ ANIM_FLAG_TURBO
Definition: SimData.h:151
RoR::FlexAirfoil
Definition: FlexAirfoil.h:33
RoR::hydrobeam_t::hb_anim_param
float hb_anim_param
Only for 'animators'.
Definition: SimData.h:577
RoR::hydrobeam_t::hb_speed
float hb_speed
Rate of change.
Definition: SimData.h:574
RoR::EVENT_ALL
@ EVENT_ALL
(default) ~ Triggered by any node on any vehicle
Definition: SimData.h:49
RoR::shock_t::sbd_spring
float sbd_spring
set beam default for spring
Definition: SimData.h:374
RoR::ActorState::NETWORKED_HIDDEN
@ NETWORKED_HIDDEN
not simulated, not updated (remote)
RoR::beam_t::shortbound
float shortbound
Definition: SimData.h:328
BitMask_t
uint32_t BitMask_t
Definition: BitFlags.h:7
RoR::rotator_t::nodes1
NodeNum_t nodes1[4]
Definition: SimData.h:584
InputEngine.h
Handles controller inputs from player. Defines input events and binding mechanism,...
RoR::collision_box_t::debug_verts
Ogre::Vector3 debug_verts[8]
box corners in absolute world position
Definition: SimData.h:697
RoR::command_t::commandValue
float commandValue
Definition: SimData.h:559
RoR::ActorSpawnRequest::Origin::USER
@ USER
Direct selection by user via GUI.
RoR::ActorLinkingRequestType::SLIDENODE_TOGGLE
@ SLIDENODE_TOGGLE
RoR::tie_t::ti_no_self_lock
bool ti_no_self_lock
Attribute.
Definition: SimData.h:514
RoR::commandbeam_t::cmb_plays_sound
bool cmb_plays_sound
Attribute defined in truckfile.
Definition: SimData.h:549
RoR::rope_t::rp_locked
int rp_locked
Definition: SimData.h:494
RoR::ACTORSIMATTR_ENGINE_SHIFTDOWN_RPM
@ ACTORSIMATTR_ENGINE_SHIFTDOWN_RPM
Automatic transmission - Param #1 of 'engine'.
Definition: SimData.h:934
RoR::ACTORSIMATTR_ENGOPTION_ENGINE_TYPE
@ ACTORSIMATTR_ENGOPTION_ENGINE_TYPE
Definition: SimData.h:942
RoR::ground_model_t::flow_consistency_index
float flow_consistency_index
general drag coefficient
Definition: SimData.h:714
RoR::ANIM_FLAG_DIFFLOCK
@ ANIM_FLAG_DIFFLOCK
Definition: SimData.h:158
RoR::ActorSpawnRequest::asr_net_peeropts
BitMask_t asr_net_peeropts
RoRnet::PeerOptions to be applied after spawn.
Definition: SimData.h:847
RoR::SHOCK1
@ SHOCK1
either 'shock1' (with flag BEAM_HYDRO) or a wheel beam
Definition: SimData.h:100
RoR::SHOCK_FLAG_ISTRIGGER
@ SHOCK_FLAG_ISTRIGGER
Definition: SimData.h:195
RoR::rotator_t::force
float force
Definition: SimData.h:590
RoR::FreeForceRequest::ffr_id
int64_t ffr_id
Definition: SimData.h:788
RoR::ANIM_FLAG_AIRSPEED
@ ANIM_FLAG_AIRSPEED
Definition: SimData.h:135
RoR::ANIM_FLAG_STEERING
@ ANIM_FLAG_STEERING
Definition: SimData.h:159
RoR::ActorSpawnRequest::asr_position
Ogre::Vector3 asr_position
Definition: SimData.h:837
RoR::SHOCK_FLAG_TRG_BLOCKER
@ SHOCK_FLAG_TRG_BLOCKER
Definition: SimData.h:196
RoR::rope_t::~rope_t
~rope_t()
Definition: SimData.cpp:57
RoR::ACTORSIMATTR_TC_RATIO
@ ACTORSIMATTR_TC_RATIO
Regulating force, safe values: <1 - 20>
Definition: SimData.h:929
RoR::ACTORSIMATTR_ENGOPTION_MAX_IDLE_MIXTURE
@ ACTORSIMATTR_ENGOPTION_MAX_IDLE_MIXTURE
Max throttle to maintain idle RPM - Param #9 of 'engoption'.
Definition: SimData.h:949
RoR::hook_t::hk_hook_node
node_t * hk_hook_node
Definition: SimData.h:473
RoR::ACTORSIMATTR_ENGTURBO2_ANTILAG_POWER
@ ACTORSIMATTR_ENGTURBO2_ANTILAG_POWER
Definition: SimData.h:967
RoR::FreeForce::ffc_halfb_deform
float ffc_halfb_deform
Definition: SimData.h:770
RoR::ActorType
ActorType
< Aka 'Driveable'
Definition: SimData.h:80
RoR::node_t::mass
Ogre::Real mass
Definition: SimData.h:271
RoR::ACTORSIMATTR_ENGOPTION_IDLE_RPM
@ ACTORSIMATTR_ENGOPTION_IDLE_RPM
Target idle RPM - Param #8 of 'engoption'.
Definition: SimData.h:948
RoR::events
events
Definition: InputEngine.h:73
RoR::BOAT
@ BOAT
its a boat
Definition: SimData.h:87
RoR::ActorState::NETWORKED_OK
@ NETWORKED_OK
not simulated (remote) actor
RoR::flare_t::offsetx
float offsetx
Definition: SimData.h:602
RoR::ANIM_FLAG_TACHO
@ ANIM_FLAG_TACHO
Definition: SimData.h:148
RoR::commandbeam_t::cmb_beam_index
uint16_t cmb_beam_index
Index to Actor::ar_beams array.
Definition: SimData.h:538
RoR::commandbeam_t::cmb_is_autocentering
bool cmb_is_autocentering
Attribute defined in truckfile.
Definition: SimData.h:548
RoR::node_t::nd_lockgroup
int16_t nd_lockgroup
Optional attribute (-1 = default, 9999 = deny lock) - used in the hook lock logic.
Definition: SimData.h:279
RoR::UniqueCommandKeyPair::uckp_key1
CommandkeyID_t uckp_key1
Definition: SimData.h:661
RoR::flare_t::blinkdelay
float blinkdelay
Definition: SimData.h:611
RoR::ANIM_FLAG_THROTTLE
@ ANIM_FLAG_THROTTLE
Definition: SimData.h:143
RoR::ACTORSIMATTR_ENGTURBO2_ANTILAG_ENABLED
@ ACTORSIMATTR_ENGTURBO2_ANTILAG_ENABLED
Definition: SimData.h:964
RoR::ActorLinkingRequestType::TIE_TOGGLE
@ TIE_TOGGLE
RoR::ActorSimAttrToString
const char * ActorSimAttrToString(ActorSimAttr attr)
Definition: SimData.cpp:107
RoR::TRG_ENGINE_RPM
@ TRG_ENGINE_RPM
Definition: SimData.h:216
RoR::FreeForceRequest::ffr_halfb_strength
double ffr_halfb_strength
Definition: SimData.h:802
RoR::commandbeam_state_t::commandbeam_state_t
commandbeam_state_t()
Definition: SimData.h:527
RoR::hook_t::hk_group
int hk_group
Definition: SimData.h:462
RoR::AI
@ AI
machine controlled by an Artificial Intelligence
Definition: SimData.h:89
RoR::wheel_t::wh_braking
WheelBraking wh_braking
Definition: SimData.h:405
RoR::ActorSpawnRequest::asr_instance_id
ActorInstanceID_t asr_instance_id
Optional; see ActorManager::GetActorNextInstanceID();.
Definition: SimData.h:833
RoR::beam_t::shock
shock_t * shock
Definition: SimData.h:332
RoR::PropAnimKeyState::eventlock_present
bool eventlock_present
Definition: SimData.h:623
RoR::FreeForce::ffc_target_coords
Ogre::Vector3 ffc_target_coords
Definition: SimData.h:764
RoR::ropable_t
Definition: SimData.h:479
RoR::FreeForceType::HALFBEAM_ROPE
@ HALFBEAM_ROPE
Like TOWARDS_NODE, but parametrized like a rope-beam in truck fileformat.
RoR::ActorModifyRequest::amr_type
Type amr_type
Definition: SimData.h:876
RoR::ActorSpawnRequest::asr_spawnbox
collision_box_t * asr_spawnbox
Definition: SimData.h:839
RoR::ActorSpawnRequest::asr_rotation
Ogre::Quaternion asr_rotation
Definition: SimData.h:838
RoR::FreeForceRequest::ffr_type
int64_t ffr_type
Definition: SimData.h:789
RoR::TRG_ENGINE_SHIFTUP
@ TRG_ENGINE_SHIFTUP
Definition: SimData.h:217
RoR
Definition: AppContext.h:36
RoR::ActorLinkingRequestType::LOAD_SAVEGAME
@ LOAD_SAVEGAME
RoR::soundsource_t
Definition: SimData.h:389
RoR::ACTORSIMATTR_TC_WHEELSLIP_CONSTANT
@ ACTORSIMATTR_TC_WHEELSLIP_CONSTANT
Minimum wheel slip threshold, safe value = 0.25.
Definition: SimData.h:931
RoR::ActorSpawnRequest::asr_enter
bool asr_enter
Definition: SimData.h:851
RoR::wheel_t::wh_arg_rigidity_node
NodeNum_t wh_arg_rigidity_node
Definition: SimData.h:428
RoR::beam_t::default_beam_deform
float default_beam_deform
for reset
Definition: SimData.h:335
RoR::ACTORSIMATTR_ENGINE_SHIFTUP_RPM
@ ACTORSIMATTR_ENGINE_SHIFTUP_RPM
Automatic transmission - Param #2 of 'engine'.
Definition: SimData.h:935
RoR::ActorLinkingRequestType::HOOK_LOCK
@ HOOK_LOCK
RoR::ANIM_MODE_OFFSET_X
@ ANIM_MODE_OFFSET_X
Definition: SimData.h:174
RoR::ActorModifyRequest::Type
Type
Definition: SimData.h:862
RoR::beam_t::default_beam_diameter
float default_beam_diameter
for export only
Definition: SimData.h:336
RoR::ActorSpawnRequest::~ActorSpawnRequest
~ActorSpawnRequest()
Definition: SimData.cpp:36
RoR::beam_t::bm_disabled
bool bm_disabled
Definition: SimData.h:325
RoR::COMMANDKEYID_INVALID
static const CommandkeyID_t COMMANDKEYID_INVALID
Definition: ForwardDeclarations.h:83
RoR::ground_model_t::fx_particle_min_velo
float fx_particle_min_velo
minimum velocity to display sparks
Definition: SimData.h:733
RoR::WheelPropulsion
WheelPropulsion
Definition: Application.h:532
RoR::EngineTriggerType
EngineTriggerType
Definition: SimData.h:211
RoR::FreeForceRequest::ffr_target_actor
int64_t ffr_target_actor
Definition: SimData.h:796
RoR::ground_model_t::particle_name
char particle_name[256]
Definition: SimData.h:729
RigDef::Keyword
Keyword
Definition: Application.h:171
RoR::wing_t
Definition: SimData.h:519
RoR::ANIM_FLAG_AIRBRAKE
@ ANIM_FLAG_AIRBRAKE
Definition: SimData.h:140
RoR::rope_t::rp_locked_actor
ActorPtr rp_locked_actor
Definition: SimData.h:498
RoR::shock_t::dfastout
float dfastout
shocks3
Definition: SimData.h:372
RoR::beam_t::L
float L
length
Definition: SimData.h:313
RoR::ActorSpawnRequest::Origin
Origin
< Enables special processing
Definition: SimData.h:822
RoR::flare_t::inertia
SimpleInertia inertia
Only 'flares3'.
Definition: SimData.h:617
RoR::ActorModifyRequest::Type::RESET_ON_SPOT
@ RESET_ON_SPOT
RoR::flare_t::noderef
NodeNum_t noderef
Definition: SimData.h:599
RoR::beam_t::bm_broken
bool bm_broken
Definition: SimData.h:326
RoR::rotator_t
Definition: SimData.h:581
RoR::CmdKeyArray
For backwards compatibility of the 'triggers' feature, the commandkey array must support negative ind...
Definition: SimData.h:631
RoR::FreeForceRequest::ffr_halfb_plastic_coef
double ffr_halfb_plastic_coef
Definition: SimData.h:804
RoR::SHOCK_FLAG_ISSHOCK2
@ SHOCK_FLAG_ISSHOCK2
Definition: SimData.h:192
RoR::ActorSpawnRequest::asr_saved_state
std::shared_ptr< rapidjson::Document > asr_saved_state
Pushes msg MODIFY_ACTOR (type RESTORE_SAVED) after spawn.
Definition: SimData.h:854
RoR::node_t::Forces
Ogre::Vector3 Forces
Definition: SimData.h:269
RoR::ACTORSIMATTR_ENGOPTION_CLUTCH_TIME
@ ACTORSIMATTR_ENGOPTION_CLUTCH_TIME
Definition: SimData.h:945
RoR::beam_t::maxposstress
float maxposstress
Definition: SimData.h:315
RoR::hook_t::hk_lockspeed
float hk_lockspeed
Definition: SimData.h:469
RoR::shock_t::flags
int flags
Definition: SimData.h:348
RoR::shock_t
Definition: SimData.h:343
RoR::ANIM_FLAG_SHIFTER
@ ANIM_FLAG_SHIFTER
Definition: SimData.h:152
RoR::ground_model_t::fx_colour
Ogre::ColourValue fx_colour
Definition: SimData.h:726
RoR::command_t::playerInputValue
float playerInputValue
Definition: SimData.h:561
RoR::ANIM_MODE_OFFSET_Z
@ ANIM_MODE_OFFSET_Z
Definition: SimData.h:176
RoR::ActorModifyRequest::Type::RELOAD
@ RELOAD
Full reload from filesystem, requested by user.