| 1 | {{{ #!Markdown |
| 2 | |
| 3 | # CarTelemetry |
| 4 | |
| 5 | Displays internal information from the vehicle's components (speed, acceleration, suspension, inputs...). Also shows the graphic tire telemetry (realtime friction curves) and the debugging gizmos in the Editor (force lines). It's used for debugging and fine tuning the vehicles. It doesn't have utility in games. |
| 6 | |
| 7 | This script is added to a _Main_ GameObject intended to hold the control scripts for the scene, together with a [CarInput](CarInput) script. |
| 8 | |
| 9 | __Target__: vehicle to show the telemetry from. It must contain a [CarControl](wiki:CarControl) script. The [CarInput](wiki:CarInput) script configures the Target to the active vehicle. |
| 10 | |
| 11 | __Enabled__: shows or hides all the telemetry information. |
| 12 | |
| 13 | __Gizmos__: if enabled, playing the project within the Unity Editor shows force lines at the tires. Also shows the center of mass for the vehicle. Enable the _Gizmos_ option in the Game window. |
| 14 | |
| 15 | __Velocity__: in addition to the forces, velocity lines at the contact point for each tire (blue) are also displayed. |
| 16 | |
| 17 | __Curves__: shows an additional window with the graphic tire telemetry, as well as graphic suspension data. |
| 18 | |
| 19 | __Style__: text style for the telemetry window. |
| 20 | |
| 21 | }}} |