Changes

Jump to navigation Jump to search

Games/ETS2/Modding guides/1.50

2,848 bytes added, 7 May
Axle Models
=== Axle Models ===
TODO 1.50 introduces a new system for individually modeled axles on trailers, that allows the usage of a new steering mode - axle steering, which rotates the whole axle instead of rotating just the wheelsThere are several components that need to be correctly modeled/configured in order for the system to work.==== Trailer chassis model ====The trailer chassis model must have ''axle_i'' locators, where ''i'' is an ID, starting from 0. The number of the locators must match the number of axle models. The trailer chassis may contain any combination of classic wheel locators and axle locators, though some obscure configurations may not work as desired. ==== Axle model ====Model should have its origin point set accordingly as the model will be placed directly on it's corresponding locator. Axle model must contain at least one pair of wheel locators and if the axle model uses its own shadow texture, then it must have its own shadow texture caster locators (defined same as the chassis ones). Additionally, axle models can have several wheel pairs attached to it, but all of them must have the same ''steerable_axle'' value. Axle models can also contain locators for hookups (e.g. lights) and accessories (e.g. bumpers). ==== Chassis data ====It is important to correctly setup the atributes in chassis definition (see [[Documentation/Engine/Units/accessory_chassis_data|accessory_chassis_data]]). Models in ''axle_model'' array will be placed from first to last on their corresponding locators (by position) from the front to the back of the trailer. Rest of the ''axle_model_...'' attributes are optional. ''axle_model_collision'' contains the path to a collision descriptor, currently we support only one box shape collision per axle model. If ''axle_model_extended_shadow_texture'' is used, then the axle model must have its own shadow texture caster locators (defined same as the chassis ones). If ''axle_model_steer_angle'' is set, it overwrites the maximum angle that the last axle can rotate by. If not set, default value of 50 degrees will be used. Too high values or too low values may produce inconsistent and incorrect steering. Lastly, the ''steerable_axle'' and ''liftable_axle'' arrays must contain an entry for each axle on the trailer, i.e., static axle defined on chassis is 1 entry, axle model with 1 axle is also 1 entry, axle model with ''n'' axles would be ''n'' entries. Additionally, if an axle model is used for axle steering, than all entries in ''steerable_axle'' for this axle model must have the same value, otherwise all wheels on this model are set to nonsteerable. Important to note, that ''extended_shadow_texture'' should not have shadows for wheels that are attached to axle models, while ''ui_shadow'' should have shadows for all wheels in their default position as the axle model is not moving in the UI.
=== Dashboard Display IDs ===
developer
3
edits

Navigation menu