Changes

Jump to navigation Jump to search

Documentation/Engine/Units/trailer cable data

556 bytes added, 16:07, 9 May 2019
Attributes: Added 1.32 attributes.
{{Note|This article is a work in progress and has yet to be reviewed by SCS staff. Some information may be incomplete or inaccurate.}}
The '''physics_trailer_cable_datatrailer_cable_data''' unit class is used for defining a dynamic trailer cable connection between a vehicle and its trailer. Units of this type are typically nameless, and defined in-line with an '''[[Documentation/Engine/Units/accessory_addon_trailer_cables_data|accessory_addon_trailer_cables_data]]''' unit . ''This unit type was added in 1.31and was previously named '''physics_trailer_cable_data''' until 1.32.''
== Attributes ==
|
|Diameter of the cable itself. (Minimum 0.001, cannot exceed '''diameter''')
|-
|straight_cable_length
|float
|0
|Length of straight cable, in meters, if greater than zero. Cables are spiral otherwise.
|-
|back_faces
|boolean
|false
|When true, the "inside" faces of a straight cable are drawn. This can be useful when using a transparent material on cable, so that inner wall of the cable will also be visible (for example back faces are currently used in the new trailer cables for traffic vehicles).
|-
|material
|int
|
|The number of lengthwise segments for the cable simulation. (Minimum 2)<!--
|-
|position_iterations
|float
|
|-->
|}
309
edits

Navigation menu