1- using System . Runtime . InteropServices ;
1+ using System . Runtime . InteropServices ;
22
33namespace com . drowhunter . NewStarGPTelemetryMod
44{
55 [ StructLayout ( LayoutKind . Sequential ) ]
66 internal struct NewStarTelemetryData
77 {
8+ /// <summary>
9+ /// Vehicle pitch angle.
10+ /// Unity Euler angle component.
11+ /// Unit: degrees.
12+ /// </summary>
813 public float Pitch ;
14+
15+ /// <summary>
16+ /// Vehicle yaw/heading angle.
17+ /// Unity Euler angle component.
18+ /// Unit: degrees.
19+ /// </summary>
920 public float Yaw ;
21+
22+ /// <summary>
23+ /// Vehicle roll/bank angle.
24+ /// Unity Euler angle component.
25+ /// Unit: degrees.
26+ /// </summary>
1027 public float Roll ;
1128
29+ /// <summary>
30+ /// Local angular velocity around X axis.
31+ /// Unit: radians per second (Unity Rigidbody angular velocity convention unless converted upstream).
32+ /// </summary>
1233 public float AngularVelocityX ;
34+
35+ /// <summary>
36+ /// Local angular velocity around Y axis.
37+ /// Unit: radians per second (Unity Rigidbody angular velocity convention unless converted upstream).
38+ /// </summary>
1339 public float AngularVelocityY ;
40+
41+ /// <summary>
42+ /// Local angular velocity around Z axis.
43+ /// Unit: radians per second (Unity Rigidbody angular velocity convention unless converted upstream).
44+ /// </summary>
1445 public float AngularVelocityZ ;
1546
47+ /// <summary>
48+ /// Centripetal-related value from telemetry extractor.
49+ /// Unit depends on extractor formula:
50+ /// - v^2 / r => m/s^2
51+ /// - (v^2 / r) / 9.81 => g
52+ /// - m * v^2 / r => N
53+ /// </summary>
1654 public float cForce ;
1755
56+ /// <summary>
57+ /// Local velocity X component.
58+ /// Unit: meters per second (m/s).
59+ /// </summary>
1860 public float VelocityX ;
61+
62+ /// <summary>
63+ /// Local velocity Y component.
64+ /// Unit: meters per second (m/s).
65+ /// </summary>
1966 public float VelocityY ;
67+
68+ /// <summary>
69+ /// Local velocity Z component.
70+ /// Unit: meters per second (m/s).
71+ /// </summary>
2072 public float VelocityZ ;
2173
74+ /// <summary>
75+ /// Local acceleration X component.
76+ /// Unit: meters per second squared (m/s^2), unless normalized upstream.
77+ /// </summary>
2278 public float AccelX ;
79+
80+ /// <summary>
81+ /// Local acceleration Y component.
82+ /// Unit: meters per second squared (m/s^2), unless normalized upstream.
83+ /// </summary>
2384 public float AccelY ;
85+
86+ /// <summary>
87+ /// Local acceleration Z component.
88+ /// Unit: meters per second squared (m/s^2), unless normalized upstream.
89+ /// </summary>
2490 public float AccelZ ;
2591
2692 /// <summary>
27- /// Speed in Meter per Second
93+ /// Scalar speed.
94+ /// Unit: meters per second (m/s).
95+ /// </summary>
96+ public float Speed ;
97+
98+ /// <summary>
99+ /// Normalized engine RPM ratio.
100+ /// Computed as engine.RPM / engine.maxRPM.
101+ /// Unit: unitless ratio (typically 0..1), not raw RPM.
102+ /// </summary>
103+ public float RPM ;
104+
105+ /// <summary>
106+ /// Current gearbox target gear.
107+ /// Unit: unitless integer.
28108 /// </summary>
29- public float Speed ;
30-
31- public float RPM ;
32-
33109 public int CurrentGear ;
34-
110+
111+ /// <summary>
112+ /// Front-left wheel vertical relative motion rate.
113+ /// Derived from wheel Y delta (relative to average wheel Y) divided by fixedDeltaTime.
114+ /// Unit: meters per second (m/s).
115+ /// </summary>
35116 public float TireFL ;
117+
118+ /// <summary>
119+ /// Front-right wheel vertical relative motion rate.
120+ /// Derived from wheel Y delta (relative to average wheel Y) divided by fixedDeltaTime.
121+ /// Unit: meters per second (m/s).
122+ /// </summary>
36123 public float TireFR ;
124+
125+ /// <summary>
126+ /// Back-left wheel vertical relative motion rate.
127+ /// Derived from wheel Y delta (relative to average wheel Y) divided by fixedDeltaTime.
128+ /// Unit: meters per second (m/s).
129+ /// </summary>
37130 public float TireBL ;
131+
132+ /// <summary>
133+ /// Back-right wheel vertical relative motion rate.
134+ /// Derived from wheel Y delta (relative to average wheel Y) divided by fixedDeltaTime.
135+ /// Unit: meters per second (m/s).
136+ /// </summary>
38137 public float TireBR ;
39138
139+ /// <summary>
140+ /// Number of wheels currently on track.
141+ /// Unit: count.
142+ /// </summary>
40143 public int WheelsOnTrack ;
144+
145+ /// <summary>
146+ /// Whether slipstream boost is active.
147+ /// </summary>
41148 public bool IsBoosting ;
42-
149+
150+ /// <summary>
151+ /// Whether driving input/state allows active driving.
152+ /// </summary>
43153 internal bool AllowDriving ;
44- internal bool IsRacing ;
45- internal bool IsEventOver ;
46154
155+ /// <summary>
156+ /// Whether race state is currently "Racing".
157+ /// </summary>
158+ internal bool IsRacing ;
47159
160+ /// <summary>
161+ /// Whether the current challenge event is over.
162+ /// </summary>
163+ internal bool IsEventOver ;
48164 }
49-
50-
51- }
165+ }
0 commit comments