  | 
  
    RigsofRods
    2023.09
    
   Soft-body Physics Simulation 
   | 
 
 
 
  
  
 
Go to the documentation of this file.
   33 #include <OgreResourceManager.h> 
   47     Ogre::Vector3   
tnt_pos = Ogre::Vector3::ZERO; 
 
   54     Ogre::Vector3   
tct_pos = Ogre::Vector3::ZERO; 
 
  194     static std::vector<TuneupDefPtr> 
ParseTuneups(Ogre::DataStreamPtr& stream);
 
  
bool isFlexbodyForceRemoved(FlexbodyID_t flexbodyid)
 
WheelSide
Used by rig-def/addonpart/tuneup formats to specify wheel rim mesh orientation.
 
std::set< FlexbodyID_t > force_remove_flexbodies
UI overrides.
 
std::string twt_origin
Addonpart filename.
 
static bool isAddonPartUsed(TuneupDefPtr &tuneup_entry, const std::string &filename)
 
std::set< FlareID_t > protected_flares
Flares which cannot be altered via 'addonpart_unwanted_flare' directive.
 
static std::vector< TuneupDefPtr > ParseTuneups(Ogre::DataStreamPtr &stream)
 
NodeNum_t tnt_nodenum
Arg#1, required.
 
static Ogre::Vector3 getTweakedCineCameraPosition(TuneupDefPtr &tuneup_entry, CineCameraID_t cinecamid, Ogre::Vector3 orig_val)
 
static bool isWheelTweaked(TuneupDefPtr &tuneup_entry, WheelID_t wheel_id, TuneupWheelTweak *&out_tweak)
 
bool isManagedMatProtected(const std::string &matname) const
 
float twt_tire_radius
Arg#5, optional.
 
std::set< PropID_t > force_remove_props
UI overrides.
 
std::set< PropID_t > unwanted_props
'addonpart_unwanted_prop' directives.
 
< Data of 'addonpart_tweak_prop <prop ID> <offsetX> <offsetY> <offsetZ> <rotX> <rotY> <rotZ> <media1>...
 
float twt_rim_radius
Arg#6, optional, only applies to some wheel types.
 
Ogre::Vector3 tft_rotation
 
int CineCameraID_t
Index into Actor::ar_cinecam_node and Actor::ar_camera_node_* arrays; use RoR::CINECAMERAID_INVALID a...
 
static bool isPropTweaked(TuneupDefPtr &tuneup_entry, PropID_t flexbody_id, TuneupPropTweak *&out_tweak)
 
std::string tft_origin
Addonpart filename.
 
std::string tmt_type
Arg#2, required.
 
static bool isPropAnyhowRemoved(TuneupDefPtr &tuneup_def, PropID_t prop_id)
 
std::set< std::string > unwanted_managedmats
'addonpart_unwanted_managedmaterial' directives.
 
std::map< PropID_t, TuneupPropTweak > prop_tweaks
Mesh name(s), offset and rotation overrides via 'addonpart_tweak_prop'.
 
static const NodeNum_t NODENUM_INVALID
 
static const PropID_t PROPID_INVALID
 
std::set< FlexbodyID_t > unwanted_flexbodies
'addonpart_unwanted_flexbody' directives.
 
static void ExportTuneup(Ogre::DataStreamPtr &stream, TuneupDefPtr &tuneup)
 
bool isFlexbodyProtected(FlexbodyID_t flexbodyid) const
 
std::set< NodeNum_t > protected_nodes
Nodes that cannot be altered via 'addonpart_tweak_node'.
 
std::set< std::string > use_addonparts
Addonpart filenames.
 
bool isExhaustUnwanted(ExhaustID_t exhaustid)
 
bool isPropUnwanted(PropID_t propid)
 
static Ogre::Vector3 getTweakedPropOffset(TuneupDefPtr &tuneup_entry, PropID_t prop_id, Ogre::Vector3 orig_val)
 
static Ogre::Vector3 getTweakedPropRotation(TuneupDefPtr &tuneup_entry, PropID_t prop_id, Ogre::Vector3 orig_val)
 
Ogre::Vector3 tpt_rotation
 
int ExhaustID_t
Index into GfxActor::m_exhausts, use RoR::EXHAUSTID_INVALID as empty value.
 
std::set< PropID_t > protected_props
Props which cannot be altered via 'addonpart_tweak_prop' or 'addonpart_unwanted_prop' directive.
 
WheelID_t twt_wheel_id
Arg#1, required.
 
bool isPropProtected(PropID_t propid) const
 
CineCameraID_t tct_cinecam_id
Arg#1, required.
 
static bool isNodeTweaked(TuneupDefPtr &tuneup_entry, NodeNum_t nodenum, TuneupNodeTweak *&out_tweak)
 
bool isVideoCameraRoleForced(VideoCameraID_t camera_id, VideoCamRole &out_val) const
 
static std::string getTweakedFlexbodyMediaRG(TuneupDefPtr &tuneup_def, FlexbodyID_t flexbody_id, int media_idx, const std::string &orig_val)
 
< Data of 'addonpart_tweak_cinecam <cinecam ID> <posX> <posY> <posZ>'
 
FlexbodyID_t tft_flexbody_id
 
std::map< std::string, TuneupManagedMatTweak > managedmat_tweaks
Managed material overrides via 'addonpart_tweak_managedmaterial'.
 
std::map< NodeNum_t, TuneupNodeTweak > node_tweaks
Node position overrides via 'addonpart_tweak_node'.
 
std::set< FlareID_t > unwanted_flares
'addonpart_unwanted_flare' directives.
 
< Data of 'addonpart_tweak_managedmaterial <name> <type> <media1> <media2> [<media3>]'
 
int VideoCameraID_t
Index into GfxActor::m_videocameras, use RoR::VIDEOCAMERAID_INVALID as empty value.
 
static const FlexbodyID_t FLEXBODYID_INVALID
 
std::string tmt_origin
Addonpart filename.
 
uint16_t NodeNum_t
Node position within Actor::ar_nodes; use RoR::NODENUM_INVALID as empty value.
 
static bool isManagedMatAnyhowRemoved(TuneupDefPtr &tuneup_def, const std::string &matname)
 
static bool isFlexbodyAnyhowRemoved(TuneupDefPtr &tuneup_def, FlexbodyID_t flexbody_id)
 
bool isManagedMatForceRemoved(const std::string &matname)
 
< Data of 'addonpart_tweak_node <nodenum> <posX> <posY> <posZ>'
 
A database of user-installed content alias 'mods' (vehicles, terrains...)
 
static const WheelID_t WHEELID_INVALID
 
std::set< WheelID_t > protected_wheels
Wheels that cannot be altered via 'addonpart_tweak_wheel'.
 
WheelSide twt_side
Arg#4, optional, default LEFT (Only applicable to mesh/flexbody wheels)
 
static std::string getTweakedPropMedia(TuneupDefPtr &tuneup_entry, PropID_t prop_id, int media_idx, const std::string &orig_val)
 
std::map< FlexbodyID_t, TuneupFlexbodyTweak > flexbody_tweaks
Mesh name, offset and rotation overrides via 'addonpart_tweak_flexbody'.
 
int WheelID_t
Index to Actor::ar_wheels, use RoR::WHEELID_INVALID as empty value.
 
Ogre::Vector3 tnt_pos
Args#234, required.
 
const size_t TUNEUP_BUF_SIZE
 
std::set< std::string > protected_managedmats
Managed materials which cannot be altered via 'addonpart_tweak_managedmaterial' directive.
 
bool isWheelProtected(WheelID_t wheelid) const
 
bool isFlareUnwanted(FlareID_t flareid)
 
Central state/object manager and communications hub.
 
std::string tpt_origin
Addonpart filename.
 
static bool isCineCameraTweaked(TuneupDefPtr &tuneup_entry, CineCameraID_t cinecamid, TuneupCineCameraTweak *&out_tweak)
 
static std::string getTweakedFlexbodyMedia(TuneupDefPtr &tuneup_entry, FlexbodyID_t flexbody_id, int media_idx, const std::string &orig_val)
 
std::set< ExhaustID_t > unwanted_exhausts
'addonpart_unwanted_exhaust' directives.
 
static std::string getTweakedManagedMatMediaRG(TuneupDefPtr &tuneup_def, const std::string &matname, int media_idx, const std::string &orig_val)
 
static float getTweakedWheelRimRadius(TuneupDefPtr &tuneup_entry, WheelID_t wheel_id, float orig_val)
 
bool isFlareForceRemoved(FlareID_t flareid)
 
static bool isFlareAnyhowRemoved(TuneupDefPtr &tuneup_def, FlareID_t flare_id)
 
std::set< std::string > force_remove_managedmats
User unticked an UI checkbox in Tuning menu, section Managed Materials.
 
static Ogre::Vector3 getTweakedFlexbodyRotation(TuneupDefPtr &tuneup_entry, FlexbodyID_t flexbody_id, Ogre::Vector3 orig_val)
 
std::array< std::string, 2 > twt_media
twt_media[0] Arg#2, required ('wheels[2]': face material, 'meshwheels[2]/flexbodywheels': rim mesh) t...
 
std::array< std::string, 2 > tpt_media
Media1 = prop mesh; Media2: Steering wheel mesh or beacon flare material.
 
std::map< VideoCameraID_t, VideoCamRole > force_video_cam_roles
UI overrides.
 
std::set< ExhaustID_t > protected_exhausts
Exhausts which cannot be altered via 'addonpart_unwanted_exhaust' directive.
 
static Ogre::Vector3 getTweakedFlexbodyOffset(TuneupDefPtr &tuneup_entry, FlexbodyID_t flexbody_id, Ogre::Vector3 orig_val)
 
std::string tnt_origin
Addonpart filename.
 
std::set< FlexbodyID_t > protected_flexbodies
Flexbodies which cannot be altered via 'addonpart_tweak_flexbody' or 'addonpart_unwanted_flexbody' di...
 
static std::string getTweakedPropMediaRG(TuneupDefPtr &tuneup_def, PropID_t prop_id, int media_idx, const std::string &orig_val)
 
static std::string getTweakedManagedMatType(TuneupDefPtr &tuneup_def, const std::string &matname, const std::string &orig_val)
 
std::map< CineCameraID_t, TuneupCineCameraTweak > cinecam_tweaks
Cinecam position overrides via 'addonpart_tweak_cinecam'.
 
std::string filename
target vehicle filename
 
static bool isExhaustAnyhowRemoved(TuneupDefPtr &tuneup_def, ExhaustID_t exhaust_id)
 
static bool isManagedMatTweaked(TuneupDefPtr &tuneup_def, const std::string &matname, TuneupManagedMatTweak *&out_tweak)
 
static std::string getTweakedWheelMediaRG(TuneupDefPtr &tuneup_def, WheelID_t wheel_id, int media_idx, const std::string &orig_val)
 
int FlareID_t
Index into Actor::ar_flares, use RoR::FLAREID_INVALID as empty value.
 
static WheelSide getTweakedWheelSide(TuneupDefPtr &tuneup_entry, WheelID_t wheel_id, WheelSide orig_val)
 
bool isFlareProtected(FlareID_t flareid) const
 
static float getTweakedWheelTireRadius(TuneupDefPtr &tuneup_entry, WheelID_t wheel_id, float orig_val)
 
bool isExhaustForceRemoved(ExhaustID_t exhaustid)
 
static std::string getTweakedManagedMatMedia(TuneupDefPtr &tuneup_def, const std::string &matname, int media_idx, const std::string &orig_val)
 
CacheCategoryId category_id
 
static const CineCameraID_t CINECAMERAID_INVALID
 
std::string tmt_name
Arg#1, required.
 
< Data of 'addonpart_tweak_wheel <wheel ID> <media1> <media2> <side flag> <tire radius> <rim radius>'
 
static Ogre::Vector3 getTweakedNodePosition(TuneupDefPtr &tuneup_entry, NodeNum_t nodenum, Ogre::Vector3 orig_val)
 
std::set< FlareID_t > force_remove_flares
User unticked an UI checkbox in Tuning menu, section Flares.
 
std::map< WheelID_t, WheelSide > force_wheel_sides
UI overrides.
 
bool isExhaustProtected(ExhaustID_t exhaustid) const
 
bool isFlexbodyUnwanted(FlexbodyID_t flexbodyid)
 
bool isCineCameraProtected(CineCameraID_t cinecamid) const
 
int FlexbodyID_t
Index to GfxActor::m_flexbodies, use RoR::FLEXBODYID_INVALID as empty value.
 
Self reference-counting objects, as requred by AngelScript garbage collector.
 
bool isWheelSideForced(WheelID_t wheelid, WheelSide &out_val) const
 
std::string tct_origin
Addonpart filename.
 
static bool isFlexbodyTweaked(TuneupDefPtr &tuneup_entry, FlexbodyID_t flexbody_id, TuneupFlexbodyTweak *&out_tweak)
 
std::string guid
target vehicle GUID
 
static void ParseTuneupAttribute(const std::string &line, TuneupDefPtr &tuneup_def)
 
< Data of 'addonpart_tweak_flexbody <flexbody ID> <offsetX> <offsetY> <offsetZ> <rotX> <rotY> <rotZ> ...
 
static std::string getTweakedWheelMedia(TuneupDefPtr &tuneup_entry, WheelID_t wheel_id, int media_idx, const std::string &orig_val)
 
std::set< CineCameraID_t > protected_cinecams
Cinecams that cannot be altered via 'addonpart_tweak_cinecam'.
 
bool isPropForceRemoved(PropID_t propid)
 
static VideoCamRole getTweakedVideoCameraRole(TuneupDefPtr &tuneup_def, VideoCameraID_t camera_id, VideoCamRole orig_val)
 
std::array< std::string, 3 > tmt_media
Arg#3, required, Arg#4, optional, Arg#5, optional.
 
std::set< ExhaustID_t > force_remove_exhausts
User unticked an UI checkbox in Tuning menu, section Exhausts.
 
std::map< WheelID_t, TuneupWheelTweak > wheel_tweaks
Mesh name and radius overrides via 'addonpart_tweak_wheel'.
 
bool isManagedMatUnwanted(const std::string &matname)
 
int PropID_t
Index to GfxActor::m_props, use RoR::PROPID_INVALID as empty value.
 
Ogre::Vector3 tct_pos
Args#234, required.
 
bool isNodeProtected(NodeNum_t nodenum) const