aboutsummaryrefslogtreecommitdiff
path: root/PhysX_3.4/Documentation/PhysXAPI/files/PxVehicleComponents_8h-source.html
blob: 7323131b28f5298f7e8c87098f39d11bcbd31a91 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
<html>
	<head>
		<title>NVIDIA(R) PhysX(R) SDK 3.4 API Reference: PxVehicleComponents.h Source File</title>
		<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
		<LINK HREF="NVIDIA.css" REL="stylesheet" TYPE="text/css">
	</head>

	<body bgcolor="#FFFFFF">
		<div id="header">
			<hr class="first">
			<img alt="" src="images/PhysXlogo.png" align="middle"> <br>
			<center>
				<a class="qindex" href="main.html">Main Page</a> &nbsp; 
				<a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; 
				<a class="qindex" href="annotated.html">Compound List</a> &nbsp; 
				<a class="qindex" href="functions.html">Compound Members</a> &nbsp;  
			</center>
			<hr class="second">
		</div>
<!-- Generated by Doxygen 1.5.8 -->
<h1>PxVehicleComponents.h</h1><a href="PxVehicleComponents_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">//</span>
<a name="l00002"></a>00002 <span class="comment">// Redistribution and use in source and binary forms, with or without</span>
<a name="l00003"></a>00003 <span class="comment">// modification, are permitted provided that the following conditions</span>
<a name="l00004"></a>00004 <span class="comment">// are met:</span>
<a name="l00005"></a>00005 <span class="comment">//  * Redistributions of source code must retain the above copyright</span>
<a name="l00006"></a>00006 <span class="comment">//    notice, this list of conditions and the following disclaimer.</span>
<a name="l00007"></a>00007 <span class="comment">//  * Redistributions in binary form must reproduce the above copyright</span>
<a name="l00008"></a>00008 <span class="comment">//    notice, this list of conditions and the following disclaimer in the</span>
<a name="l00009"></a>00009 <span class="comment">//    documentation and/or other materials provided with the distribution.</span>
<a name="l00010"></a>00010 <span class="comment">//  * Neither the name of NVIDIA CORPORATION nor the names of its</span>
<a name="l00011"></a>00011 <span class="comment">//    contributors may be used to endorse or promote products derived</span>
<a name="l00012"></a>00012 <span class="comment">//    from this software without specific prior written permission.</span>
<a name="l00013"></a>00013 <span class="comment">//</span>
<a name="l00014"></a>00014 <span class="comment">// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY</span>
<a name="l00015"></a>00015 <span class="comment">// EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE</span>
<a name="l00016"></a>00016 <span class="comment">// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR</span>
<a name="l00017"></a>00017 <span class="comment">// PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT OWNER OR</span>
<a name="l00018"></a>00018 <span class="comment">// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,</span>
<a name="l00019"></a>00019 <span class="comment">// EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,</span>
<a name="l00020"></a>00020 <span class="comment">// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR</span>
<a name="l00021"></a>00021 <span class="comment">// PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY</span>
<a name="l00022"></a>00022 <span class="comment">// OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT</span>
<a name="l00023"></a>00023 <span class="comment">// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE</span>
<a name="l00024"></a>00024 <span class="comment">// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</span>
<a name="l00025"></a>00025 <span class="comment">//</span>
<a name="l00026"></a>00026 <span class="comment">// Copyright (c) 2008-2018 NVIDIA Corporation. All rights reserved.</span>
<a name="l00027"></a>00027 <span class="comment">// Copyright (c) 2004-2008 AGEIA Technologies, Inc. All rights reserved.</span>
<a name="l00028"></a>00028 <span class="comment">// Copyright (c) 2001-2004 NovodeX AG. All rights reserved.  </span>
<a name="l00029"></a>00029 
<a name="l00030"></a>00030 <span class="preprocessor">#ifndef PX_VEHICLE_CORE_COMPONENTS_H</span>
<a name="l00031"></a>00031 <span class="preprocessor"></span><span class="preprocessor">#define PX_VEHICLE_CORE_COMPONENTS_H</span>
<a name="l00032"></a>00032 <span class="preprocessor"></span>
<a name="l00036"></a>00036 <span class="preprocessor">#include "<a class="code" href="PxMemory_8h.html">foundation/PxMemory.h</a>"</span>
<a name="l00037"></a>00037 <span class="preprocessor">#include "<a class="code" href="PxVec3_8h.html">foundation/PxVec3.h</a>"</span>
<a name="l00038"></a>00038 <span class="preprocessor">#include "<a class="code" href="PxCoreUtilityTypes_8h.html">common/PxCoreUtilityTypes.h</a>"</span>
<a name="l00039"></a>00039 <span class="preprocessor">#include "<a class="code" href="PxVehicleSDK_8h.html">PxVehicleSDK.h</a>"</span>
<a name="l00040"></a>00040 <span class="preprocessor">#include "<a class="code" href="PxTypeInfo_8h.html">common/PxTypeInfo.h</a>"</span>
<a name="l00041"></a>00041 
<a name="l00042"></a>00042 <span class="preprocessor">#if !PX_DOXYGEN</span>
<a name="l00043"></a>00043 <span class="preprocessor"></span><span class="keyword">namespace </span>physx
<a name="l00044"></a>00044 {
<a name="l00045"></a>00045 <span class="preprocessor">#endif</span>
<a name="l00046"></a>00046 <span class="preprocessor"></span>
<a name="l00047"></a><a class="code" href="classPxVehicleChassisData.html">00047</a> <span class="keyword">class </span><a class="code" href="classPxVehicleChassisData.html">PxVehicleChassisData</a>
<a name="l00048"></a>00048 {
<a name="l00049"></a>00049 <span class="keyword">public</span>:
<a name="l00050"></a>00050 
<a name="l00051"></a><a class="code" href="classPxVehicleChassisData.html#be694ed054b9f8747c22bcd3fe251b98">00051</a>     <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classPxVehicleDriveSimData4W.html" title="Data structure describing the drive model components of a vehicle with up to 4 driven...">PxVehicleDriveSimData4W</a>;
<a name="l00052"></a>00052 
<a name="l00053"></a><a class="code" href="classPxVehicleChassisData.html#edff02e1e05309618636a393743265f4">00053</a>     <a class="code" href="classPxVehicleChassisData.html">PxVehicleChassisData</a>()
<a name="l00054"></a>00054         :   mMOI(<a class="code" href="classPxVec3.html" title="3 Element vector class.">PxVec3</a>(0,0,0)),
<a name="l00055"></a>00055             mMass(1500),
<a name="l00056"></a>00056             mCMOffset(<a class="code" href="classPxVec3.html" title="3 Element vector class.">PxVec3</a>(0,0,0))
<a name="l00057"></a>00057     {
<a name="l00058"></a>00058     }
<a name="l00059"></a>00059 
<a name="l00065"></a><a class="code" href="classPxVehicleChassisData.html#52f6cfc33d051676c7a06d2d3c1a1ea2">00065</a>     <a class="code" href="classPxVec3.html" title="3 Element vector class.">PxVec3</a> mMOI;
<a name="l00066"></a>00066 
<a name="l00072"></a><a class="code" href="classPxVehicleChassisData.html#d25ba7c718a9d898a209f9ab874b380b">00072</a>     <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> mMass;
<a name="l00073"></a>00073 
<a name="l00079"></a><a class="code" href="classPxVehicleChassisData.html#4945832cb26bd313d6d1b59200239c01">00079</a>     <a class="code" href="classPxVec3.html" title="3 Element vector class.">PxVec3</a> mCMOffset;
<a name="l00080"></a>00080 
<a name="l00081"></a>00081 <span class="keyword">private</span>:
<a name="l00082"></a>00082 
<a name="l00083"></a><a class="code" href="classPxVehicleChassisData.html#7e37b2a81f834c76e9b00bf9b7358421">00083</a>     <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> pad;
<a name="l00084"></a>00084 
<a name="l00085"></a>00085     <span class="keywordtype">bool</span> <a class="code" href="classPxVehicleDriveSimData4W.html#fa8f53655e4b0298fa1a9ad0645ab437" title="Test if the 4W-drive simulation data has been setup with legal data.">isValid</a>() <span class="keyword">const</span>;
<a name="l00086"></a>00086 };
<a name="l00087"></a>00087 <a class="code" href="group__foundation.html#gb12cc8cbd08c9c19ab0d40b7f789012e">PX_COMPILE_TIME_ASSERT</a>(0==(<span class="keyword">sizeof</span>(<a class="code" href="classPxVehicleChassisData.html">PxVehicleChassisData</a>)&amp; 0x0f));
<a name="l00088"></a>00088 
<a name="l00089"></a><a class="code" href="classPxVehicleEngineData.html">00089</a> <span class="keyword">class </span><a class="code" href="classPxVehicleEngineData.html">PxVehicleEngineData</a>
<a name="l00090"></a>00090 {
<a name="l00091"></a>00091 <span class="keyword">public</span>:
<a name="l00092"></a>00092 
<a name="l00093"></a><a class="code" href="classPxVehicleEngineData.html#a2f8773ce851c65e3c7d31b8991ea8f8">00093</a>     <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classPxVehicleDriveSimData.html" title="Data structure describing non-wheel configuration data of a vehicle that has engine...">PxVehicleDriveSimData</a>;
<a name="l00094"></a>00094     
<a name="l00095"></a>00095     <span class="keyword">enum</span>
<a name="l00096"></a>00096     {
<a name="l00097"></a><a class="code" href="classPxVehicleEngineData.html#9d9444ef4754267f7352c33554323dd736fa1b079397822aa5a1f800221bd9af">00097</a>         eMAX_NB_ENGINE_TORQUE_CURVE_ENTRIES = 8
<a name="l00098"></a>00098     };
<a name="l00099"></a>00099 
<a name="l00100"></a><a class="code" href="classPxVehicleEngineData.html#003aa44611d0be2a466787521db49fb2">00100</a>     <a class="code" href="classPxVehicleEngineData.html">PxVehicleEngineData</a>()
<a name="l00101"></a>00101         :   mMOI(1.0f),
<a name="l00102"></a>00102             mPeakTorque(500.0f),
<a name="l00103"></a>00103             mMaxOmega(600.0f),
<a name="l00104"></a>00104             mDampingRateFullThrottle(0.15f),
<a name="l00105"></a>00105             mDampingRateZeroThrottleClutchEngaged(2.0f),
<a name="l00106"></a>00106             mDampingRateZeroThrottleClutchDisengaged(0.35f)
<a name="l00107"></a>00107     {
<a name="l00108"></a>00108         mTorqueCurve.addPair(0.0f, 0.8f);
<a name="l00109"></a>00109         mTorqueCurve.addPair(0.33f, 1.0f);
<a name="l00110"></a>00110         mTorqueCurve.addPair(1.0f, 0.8f);
<a name="l00111"></a>00111 
<a name="l00112"></a>00112         mRecipMOI=1.0f/mMOI;
<a name="l00113"></a>00113         mRecipMaxOmega=1.0f/mMaxOmega;
<a name="l00114"></a>00114     }
<a name="l00115"></a>00115 
<a name="l00121"></a><a class="code" href="classPxVehicleEngineData.html#63826cac0973a375151f3721c6bff91c">00121</a>     <a class="code" href="classPxFixedSizeLookupTable.html">PxFixedSizeLookupTable&lt;eMAX_NB_ENGINE_TORQUE_CURVE_ENTRIES&gt;</a> mTorqueCurve;
<a name="l00122"></a>00122 
<a name="l00128"></a><a class="code" href="classPxVehicleEngineData.html#c72874f424c79dcac01031d46483e87c">00128</a>     <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> mMOI;
<a name="l00129"></a>00129 
<a name="l00139"></a><a class="code" href="classPxVehicleEngineData.html#972a686f9b4c46b5fe841625b2254487">00139</a>     <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> mPeakTorque;
<a name="l00140"></a>00140 
<a name="l00148"></a><a class="code" href="classPxVehicleEngineData.html#6c95aec1c84e0be6bf3422b5baf63b55">00148</a>     <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> mMaxOmega;
<a name="l00149"></a>00149 
<a name="l00165"></a><a class="code" href="classPxVehicleEngineData.html#76943ad72ff1317e208f508170ad8500">00165</a>     <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> mDampingRateFullThrottle;
<a name="l00166"></a>00166 
<a name="l00167"></a>00167 
<a name="l00183"></a><a class="code" href="classPxVehicleEngineData.html#bca03573d5d4e614975979b7d16823ff">00183</a>     <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> mDampingRateZeroThrottleClutchEngaged;
<a name="l00184"></a>00184 
<a name="l00200"></a><a class="code" href="classPxVehicleEngineData.html#aa2ecbd51bda5f3894588cda89a015da">00200</a>     <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> mDampingRateZeroThrottleClutchDisengaged;
<a name="l00201"></a>00201 
<a name="l00205"></a><a class="code" href="classPxVehicleEngineData.html#20b8eecf7722a146de159d51a0e18a20">00205</a>     <a class="code" href="group__foundation.html#g6a774eed3cad34b0f636332a3d28c6bb">PX_FORCE_INLINE</a> <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> <a class="code" href="classPxVehicleEngineData.html#20b8eecf7722a146de159d51a0e18a20" title="Return value of mRecipMOI(=1.0f/mMOI) that is automatically set by PxVehicleDriveSimData::setEngineD...">getRecipMOI</a>()<span class="keyword"> const </span>{<span class="keywordflow">return</span> mRecipMOI;}
<a name="l00206"></a>00206 
<a name="l00210"></a><a class="code" href="classPxVehicleEngineData.html#742d83de3319ceeede730a4eb9991382">00210</a>     <a class="code" href="group__foundation.html#g6a774eed3cad34b0f636332a3d28c6bb">PX_FORCE_INLINE</a> <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> <a class="code" href="classPxVehicleEngineData.html#742d83de3319ceeede730a4eb9991382" title="Return value of mRecipMaxOmega( = 1.0f / mMaxOmega ) that is automatically set by...">getRecipMaxOmega</a>()<span class="keyword"> const </span>{<span class="keywordflow">return</span> mRecipMaxOmega;}
<a name="l00211"></a>00211 
<a name="l00212"></a>00212 <span class="keyword">private</span>:
<a name="l00213"></a>00213 
<a name="l00221"></a><a class="code" href="classPxVehicleEngineData.html#c6aeda65c9d857ab3c8233cb5ccb9b07">00221</a>     <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> mRecipMOI;
<a name="l00222"></a>00222 
<a name="l00230"></a><a class="code" href="classPxVehicleEngineData.html#00e06423168a5dde9fef7043ea701663">00230</a>     <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> mRecipMaxOmega;
<a name="l00231"></a>00231 
<a name="l00232"></a>00232     <span class="keywordtype">bool</span> <a class="code" href="classPxVehicleDriveSimData.html#a9721ce91e1d9d3a0da51ad8e657d355" title="Test that a PxVehicleDriveSimData instance has been configured with legal data. Call...">isValid</a>() <span class="keyword">const</span>;
<a name="l00233"></a>00233 
<a name="l00234"></a>00234 
<a name="l00235"></a>00235 <span class="comment">//serialization</span>
<a name="l00236"></a>00236 <span class="keyword">public</span>:
<a name="l00237"></a><a class="code" href="classPxVehicleEngineData.html#a24a9523ad4a01e87df3a6d1d7c168a1">00237</a>     <a class="code" href="classPxVehicleEngineData.html#a24a9523ad4a01e87df3a6d1d7c168a1">PxVehicleEngineData</a>(<span class="keyword">const</span> <a class="code" href="group__foundation.html#g0326e4ec6e9082ac70f32df5edc6eb5f">PxEMPTY</a>) : mTorqueCurve(<a class="code" href="group__foundation.html#gg0326e4ec6e9082ac70f32df5edc6eb5fc1f59d4e552bf7b85ed37efecfd8b8e6">PxEmpty</a>) {}
<a name="l00238"></a>00238 <span class="comment">//~serialization</span>
<a name="l00239"></a>00239 };
<a name="l00240"></a>00240 <a class="code" href="group__foundation.html#gb12cc8cbd08c9c19ab0d40b7f789012e">PX_COMPILE_TIME_ASSERT</a>(0==(<span class="keyword">sizeof</span>(<a class="code" href="classPxVehicleEngineData.html">PxVehicleEngineData</a>)&amp; 0x0f));
<a name="l00241"></a>00241 
<a name="l00242"></a><a class="code" href="classPxVehicleGearsData.html">00242</a> <span class="keyword">class </span><a class="code" href="classPxVehicleGearsData.html">PxVehicleGearsData</a>
<a name="l00243"></a>00243 {
<a name="l00244"></a>00244 <span class="keyword">public</span>:
<a name="l00245"></a>00245 
<a name="l00246"></a><a class="code" href="classPxVehicleGearsData.html#a2f8773ce851c65e3c7d31b8991ea8f8">00246</a>     <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classPxVehicleDriveSimData.html" title="Data structure describing non-wheel configuration data of a vehicle that has engine...">PxVehicleDriveSimData</a>;
<a name="l00247"></a>00247 
<a name="l00248"></a><a class="code" href="classPxVehicleGearsData.html#31359110050aad08510b99208a304cb7">00248</a>     <span class="keyword">enum</span> <a class="code" href="classPxVehicleGearsData.html#31359110050aad08510b99208a304cb7">Enum</a>
<a name="l00249"></a>00249     {
<a name="l00250"></a><a class="code" href="classPxVehicleGearsData.html#31359110050aad08510b99208a304cb7f522dd809b590b828e826fa7a0c083cb">00250</a>         eREVERSE=0,
<a name="l00251"></a><a class="code" href="classPxVehicleGearsData.html#31359110050aad08510b99208a304cb7a3cb1739bffe703f71b3f7b70fae4187">00251</a>         eNEUTRAL,
<a name="l00252"></a><a class="code" href="classPxVehicleGearsData.html#31359110050aad08510b99208a304cb7d6457417b12c88b701f6318fd58b3c29">00252</a>         eFIRST,
<a name="l00253"></a><a class="code" href="classPxVehicleGearsData.html#31359110050aad08510b99208a304cb7697773b3bc8b2f1a9d1e09913e126170">00253</a>         eSECOND,
<a name="l00254"></a><a class="code" href="classPxVehicleGearsData.html#31359110050aad08510b99208a304cb7eff6d4e6b3cf5cdd46d46a12354a0935">00254</a>         eTHIRD,
<a name="l00255"></a><a class="code" href="classPxVehicleGearsData.html#31359110050aad08510b99208a304cb7981cc327b2fa9709f58cea31945e610c">00255</a>         eFOURTH,
<a name="l00256"></a><a class="code" href="classPxVehicleGearsData.html#31359110050aad08510b99208a304cb74c0b58242e9c56d0dc606af39fe88fe8">00256</a>         eFIFTH,
<a name="l00257"></a><a class="code" href="classPxVehicleGearsData.html#31359110050aad08510b99208a304cb764e578969fd1e2595a7ae62aaf920865">00257</a>         eSIXTH,
<a name="l00258"></a><a class="code" href="classPxVehicleGearsData.html#31359110050aad08510b99208a304cb7ce45c074203f10fd830f6ef83652ba1d">00258</a>         eSEVENTH,
<a name="l00259"></a><a class="code" href="classPxVehicleGearsData.html#31359110050aad08510b99208a304cb77ec5ab02dd6f186a8453486e1f1b007d">00259</a>         eEIGHTH,
<a name="l00260"></a><a class="code" href="classPxVehicleGearsData.html#31359110050aad08510b99208a304cb7ca57c96018ae35867c1d981bb3e500fb">00260</a>         eNINTH,
<a name="l00261"></a><a class="code" href="classPxVehicleGearsData.html#31359110050aad08510b99208a304cb7476cfd6e181dbe556b5f84b65f3a94b6">00261</a>         eTENTH,
<a name="l00262"></a><a class="code" href="classPxVehicleGearsData.html#31359110050aad08510b99208a304cb7a1c63bf522cfa13f31b1432c97ea5cac">00262</a>         eELEVENTH,
<a name="l00263"></a><a class="code" href="classPxVehicleGearsData.html#31359110050aad08510b99208a304cb7604a3e610511584e23f7b1575c015555">00263</a>         eTWELFTH,
<a name="l00264"></a><a class="code" href="classPxVehicleGearsData.html#31359110050aad08510b99208a304cb7519e0c989662b804a27b1c729aba234a">00264</a>         eTHIRTEENTH,
<a name="l00265"></a><a class="code" href="classPxVehicleGearsData.html#31359110050aad08510b99208a304cb71df2570a8850d2e15232d8e4dfef20e3">00265</a>         eFOURTEENTH,
<a name="l00266"></a><a class="code" href="classPxVehicleGearsData.html#31359110050aad08510b99208a304cb757065d25a4a30ef239e7b54feba41679">00266</a>         eFIFTEENTH,
<a name="l00267"></a><a class="code" href="classPxVehicleGearsData.html#31359110050aad08510b99208a304cb775e929332aad1ce95d539cec2114861a">00267</a>         eSIXTEENTH,
<a name="l00268"></a><a class="code" href="classPxVehicleGearsData.html#31359110050aad08510b99208a304cb743e9369f2ff73e10dad05ba1648942db">00268</a>         eSEVENTEENTH,
<a name="l00269"></a><a class="code" href="classPxVehicleGearsData.html#31359110050aad08510b99208a304cb77a82e798063cbad1d60dfd26b4aea512">00269</a>         eEIGHTEENTH,
<a name="l00270"></a><a class="code" href="classPxVehicleGearsData.html#31359110050aad08510b99208a304cb745360ef516936038e0e8230331a4b1c4">00270</a>         eNINETEENTH,
<a name="l00271"></a><a class="code" href="classPxVehicleGearsData.html#31359110050aad08510b99208a304cb72a6d3e11bb75ef8c7c470d854f0de96a">00271</a>         eTWENTIETH,
<a name="l00272"></a><a class="code" href="classPxVehicleGearsData.html#31359110050aad08510b99208a304cb780583db4ae487006afc324f9216023d1">00272</a>         eTWENTYFIRST,
<a name="l00273"></a><a class="code" href="classPxVehicleGearsData.html#31359110050aad08510b99208a304cb7b75cfff4be6edd9d869f51b1a1fccf0a">00273</a>         eTWENTYSECOND,
<a name="l00274"></a><a class="code" href="classPxVehicleGearsData.html#31359110050aad08510b99208a304cb7c611b070914db05b5a4f912f608a7f88">00274</a>         eTWENTYTHIRD,
<a name="l00275"></a><a class="code" href="classPxVehicleGearsData.html#31359110050aad08510b99208a304cb727eac0ef58d408a1cb95a79eaa3f452a">00275</a>         eTWENTYFOURTH,
<a name="l00276"></a><a class="code" href="classPxVehicleGearsData.html#31359110050aad08510b99208a304cb7484bffdc809b1871f4948481d97de22c">00276</a>         eTWENTYFIFTH,
<a name="l00277"></a><a class="code" href="classPxVehicleGearsData.html#31359110050aad08510b99208a304cb72e5eeb1950bba2744e240eeb38c9c799">00277</a>         eTWENTYSIXTH,
<a name="l00278"></a><a class="code" href="classPxVehicleGearsData.html#31359110050aad08510b99208a304cb78e6929a2b7556b69d30cbbb068c4cfcc">00278</a>         eTWENTYSEVENTH,
<a name="l00279"></a><a class="code" href="classPxVehicleGearsData.html#31359110050aad08510b99208a304cb7eca1a50484c57fd8322289c9128d2979">00279</a>         eTWENTYEIGHTH,
<a name="l00280"></a><a class="code" href="classPxVehicleGearsData.html#31359110050aad08510b99208a304cb744a0582d5e100b8ce808395bb58cce1a">00280</a>         eTWENTYNINTH,
<a name="l00281"></a><a class="code" href="classPxVehicleGearsData.html#31359110050aad08510b99208a304cb7d7f8a4bffcb5c42dee8580da7c957800">00281</a>         eTHIRTIETH,
<a name="l00282"></a><a class="code" href="classPxVehicleGearsData.html#31359110050aad08510b99208a304cb7f227e90e7f5a7985fddb8168c0d2e667">00282</a>         eGEARSRATIO_COUNT
<a name="l00283"></a>00283     };
<a name="l00284"></a>00284 
<a name="l00285"></a><a class="code" href="classPxVehicleGearsData.html#197ff974ac25dfbad8c8f323a74a8a0d">00285</a>     <a class="code" href="classPxVehicleGearsData.html">PxVehicleGearsData</a>()
<a name="l00286"></a>00286         :   mFinalRatio(4.0f),
<a name="l00287"></a>00287             mNbRatios(7),
<a name="l00288"></a>00288             mSwitchTime(0.5f)
<a name="l00289"></a>00289     {
<a name="l00290"></a>00290         mRatios[<a class="code" href="classPxVehicleGearsData.html#31359110050aad08510b99208a304cb7f522dd809b590b828e826fa7a0c083cb">PxVehicleGearsData::eREVERSE</a>]=-4.0f;
<a name="l00291"></a>00291         mRatios[<a class="code" href="classPxVehicleGearsData.html#31359110050aad08510b99208a304cb7a3cb1739bffe703f71b3f7b70fae4187">PxVehicleGearsData::eNEUTRAL</a>]=0.0f;
<a name="l00292"></a>00292         mRatios[<a class="code" href="classPxVehicleGearsData.html#31359110050aad08510b99208a304cb7d6457417b12c88b701f6318fd58b3c29">PxVehicleGearsData::eFIRST</a>]=4.0f;
<a name="l00293"></a>00293         mRatios[<a class="code" href="classPxVehicleGearsData.html#31359110050aad08510b99208a304cb7697773b3bc8b2f1a9d1e09913e126170">PxVehicleGearsData::eSECOND</a>]=2.0f;
<a name="l00294"></a>00294         mRatios[<a class="code" href="classPxVehicleGearsData.html#31359110050aad08510b99208a304cb7eff6d4e6b3cf5cdd46d46a12354a0935">PxVehicleGearsData::eTHIRD</a>]=1.5f;
<a name="l00295"></a>00295         mRatios[<a class="code" href="classPxVehicleGearsData.html#31359110050aad08510b99208a304cb7981cc327b2fa9709f58cea31945e610c">PxVehicleGearsData::eFOURTH</a>]=1.1f;
<a name="l00296"></a>00296         mRatios[<a class="code" href="classPxVehicleGearsData.html#31359110050aad08510b99208a304cb74c0b58242e9c56d0dc606af39fe88fe8">PxVehicleGearsData::eFIFTH</a>]=1.0f;
<a name="l00297"></a>00297         
<a name="l00298"></a>00298         <span class="keywordflow">for</span>(<a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a> i = <a class="code" href="classPxVehicleGearsData.html#31359110050aad08510b99208a304cb764e578969fd1e2595a7ae62aaf920865">PxVehicleGearsData::eSIXTH</a>; i &lt; <a class="code" href="classPxVehicleGearsData.html#31359110050aad08510b99208a304cb7f227e90e7f5a7985fddb8168c0d2e667">PxVehicleGearsData::eGEARSRATIO_COUNT</a>; ++i)
<a name="l00299"></a>00299             mRatios[i]=0.f;
<a name="l00300"></a>00300     }
<a name="l00301"></a>00301     
<a name="l00307"></a><a class="code" href="classPxVehicleGearsData.html#9a5f667ad6f7d47be6753091ac270f66">00307</a>     <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> mRatios[<a class="code" href="classPxVehicleGearsData.html#31359110050aad08510b99208a304cb7f227e90e7f5a7985fddb8168c0d2e667">PxVehicleGearsData::eGEARSRATIO_COUNT</a>];
<a name="l00308"></a>00308 
<a name="l00314"></a><a class="code" href="classPxVehicleGearsData.html#db04c7e952cb69ecda68de63baace547">00314</a>     <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> mFinalRatio;
<a name="l00315"></a>00315 
<a name="l00321"></a><a class="code" href="classPxVehicleGearsData.html#419988828afa45ea708d29b4a73665b7">00321</a>     <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a> mNbRatios;
<a name="l00322"></a>00322     
<a name="l00330"></a><a class="code" href="classPxVehicleGearsData.html#b037c108ad8a9488412ae0fbe14520fb">00330</a>     <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> mSwitchTime;
<a name="l00331"></a>00331     
<a name="l00332"></a>00332 <span class="keyword">private</span>:
<a name="l00333"></a>00333 
<a name="l00334"></a><a class="code" href="classPxVehicleGearsData.html#4f53c98eb2607d7f8faa478ef4c994d1">00334</a>     <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> mPad;
<a name="l00335"></a>00335 
<a name="l00336"></a>00336     <span class="keywordtype">bool</span> <a class="code" href="classPxVehicleDriveSimData.html#a9721ce91e1d9d3a0da51ad8e657d355" title="Test that a PxVehicleDriveSimData instance has been configured with legal data. Call...">isValid</a>() <span class="keyword">const</span>;
<a name="l00337"></a>00337 
<a name="l00338"></a>00338 <span class="comment">//serialization</span>
<a name="l00339"></a>00339 <span class="keyword">public</span>:
<a name="l00340"></a><a class="code" href="classPxVehicleGearsData.html#aa179d92d69320b45210a1f1bc851c59">00340</a>     <a class="code" href="classPxVehicleGearsData.html#aa179d92d69320b45210a1f1bc851c59">PxVehicleGearsData</a>(<span class="keyword">const</span> <a class="code" href="group__foundation.html#g0326e4ec6e9082ac70f32df5edc6eb5f">PxEMPTY</a>) {}
<a name="l00341"></a><a class="code" href="classPxVehicleGearsData.html#da8113986493d8a108703b03bb04ab04">00341</a>     <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> <a class="code" href="classPxVehicleGearsData.html#da8113986493d8a108703b03bb04ab04">getGearRatio</a>(<a class="code" href="classPxVehicleGearsData.html#31359110050aad08510b99208a304cb7">PxVehicleGearsData::Enum</a> a)<span class="keyword">  const </span>{<span class="keywordflow">return</span> mRatios[a];}
<a name="l00342"></a><a class="code" href="classPxVehicleGearsData.html#3e3deb6f0ea5abe0eb4602adb0d3291d">00342</a>     <span class="keywordtype">void</span> <a class="code" href="classPxVehicleGearsData.html#3e3deb6f0ea5abe0eb4602adb0d3291d">setGearRatio</a>(<a class="code" href="classPxVehicleGearsData.html#31359110050aad08510b99208a304cb7">PxVehicleGearsData::Enum</a> a, <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> ratio)   { mRatios[a] = ratio;}
<a name="l00343"></a>00343 <span class="comment">//~serialization</span>
<a name="l00344"></a>00344 };
<a name="l00345"></a>00345 <a class="code" href="group__foundation.html#gb12cc8cbd08c9c19ab0d40b7f789012e">PX_COMPILE_TIME_ASSERT</a>(0==(<span class="keyword">sizeof</span>(<a class="code" href="classPxVehicleGearsData.html">PxVehicleGearsData</a>)&amp; 0x0f));
<a name="l00346"></a>00346 
<a name="l00347"></a><a class="code" href="classPxVehicleAutoBoxData.html">00347</a> <span class="keyword">class </span><a class="code" href="classPxVehicleAutoBoxData.html">PxVehicleAutoBoxData</a>
<a name="l00348"></a>00348 {
<a name="l00349"></a>00349 <span class="keyword">public</span>:
<a name="l00350"></a>00350 
<a name="l00351"></a><a class="code" href="classPxVehicleAutoBoxData.html#a2f8773ce851c65e3c7d31b8991ea8f8">00351</a>     <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classPxVehicleDriveSimData.html" title="Data structure describing non-wheel configuration data of a vehicle that has engine...">PxVehicleDriveSimData</a>;
<a name="l00352"></a>00352 
<a name="l00353"></a><a class="code" href="classPxVehicleAutoBoxData.html#7cb4c73cc1997ba805a79cb72f230d36">00353</a>     <a class="code" href="classPxVehicleAutoBoxData.html">PxVehicleAutoBoxData</a>()
<a name="l00354"></a>00354     {
<a name="l00355"></a>00355         <span class="keywordflow">for</span>(<a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a> i=0;i&lt;<a class="code" href="classPxVehicleGearsData.html#31359110050aad08510b99208a304cb7f227e90e7f5a7985fddb8168c0d2e667">PxVehicleGearsData::eGEARSRATIO_COUNT</a>;i++)
<a name="l00356"></a>00356         {
<a name="l00357"></a>00357             mUpRatios[i]=0.65f;
<a name="l00358"></a>00358             mDownRatios[i]=0.50f;
<a name="l00359"></a>00359         }
<a name="l00360"></a>00360         <span class="comment">//Not sure how important this is but we want to kick out of neutral very quickly.</span>
<a name="l00361"></a>00361         mUpRatios[<a class="code" href="classPxVehicleGearsData.html#31359110050aad08510b99208a304cb7a3cb1739bffe703f71b3f7b70fae4187">PxVehicleGearsData::eNEUTRAL</a>]=0.15f;
<a name="l00362"></a>00362         <span class="comment">//Set the latency time in an unused element of one of the arrays.</span>
<a name="l00363"></a>00363         mDownRatios[<a class="code" href="classPxVehicleGearsData.html#31359110050aad08510b99208a304cb7f522dd809b590b828e826fa7a0c083cb">PxVehicleGearsData::eREVERSE</a>]=2.0f; 
<a name="l00364"></a>00364     }
<a name="l00365"></a>00365     
<a name="l00374"></a><a class="code" href="classPxVehicleAutoBoxData.html#696b7ff3f8fff200c7b9fc5d28b4bf5f">00374</a>     <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> mUpRatios[<a class="code" href="classPxVehicleGearsData.html#31359110050aad08510b99208a304cb7f227e90e7f5a7985fddb8168c0d2e667">PxVehicleGearsData::eGEARSRATIO_COUNT</a>];
<a name="l00375"></a>00375 
<a name="l00384"></a><a class="code" href="classPxVehicleAutoBoxData.html#f6b4ebae3f2df08e54ae36406738ed1a">00384</a>     <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> mDownRatios[<a class="code" href="classPxVehicleGearsData.html#31359110050aad08510b99208a304cb7f227e90e7f5a7985fddb8168c0d2e667">PxVehicleGearsData::eGEARSRATIO_COUNT</a>];
<a name="l00385"></a>00385 
<a name="l00397"></a><a class="code" href="classPxVehicleAutoBoxData.html#b58a308ce4750594e3335d953d70281c">00397</a>     <span class="keywordtype">void</span> setLatency(<span class="keyword">const</span> <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> latency) 
<a name="l00398"></a>00398     { 
<a name="l00399"></a>00399         mDownRatios[<a class="code" href="classPxVehicleGearsData.html#31359110050aad08510b99208a304cb7f522dd809b590b828e826fa7a0c083cb">PxVehicleGearsData::eREVERSE</a>]=latency;
<a name="l00400"></a>00400     }
<a name="l00401"></a>00401 
<a name="l00409"></a><a class="code" href="classPxVehicleAutoBoxData.html#15e62c013c05a2e492ab81144fb32e5c">00409</a>     <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> getLatency()<span class="keyword"> const </span>
<a name="l00410"></a>00410 <span class="keyword">    </span>{ 
<a name="l00411"></a>00411         <span class="keywordflow">return</span> mDownRatios[<a class="code" href="classPxVehicleGearsData.html#31359110050aad08510b99208a304cb7f522dd809b590b828e826fa7a0c083cb">PxVehicleGearsData::eREVERSE</a>];
<a name="l00412"></a>00412     }
<a name="l00413"></a>00413 
<a name="l00414"></a>00414 <span class="keyword">private</span>:
<a name="l00415"></a>00415     <span class="keywordtype">bool</span> <a class="code" href="classPxVehicleDriveSimData.html#a9721ce91e1d9d3a0da51ad8e657d355" title="Test that a PxVehicleDriveSimData instance has been configured with legal data. Call...">isValid</a>() <span class="keyword">const</span>;
<a name="l00416"></a>00416 
<a name="l00417"></a>00417 <span class="comment">//serialization</span>
<a name="l00418"></a>00418 <span class="keyword">public</span>:
<a name="l00419"></a><a class="code" href="classPxVehicleAutoBoxData.html#4f2313daab10500b71271d46ebbd0fc5">00419</a>     <a class="code" href="classPxVehicleAutoBoxData.html#4f2313daab10500b71271d46ebbd0fc5">PxVehicleAutoBoxData</a>(<span class="keyword">const</span> <a class="code" href="group__foundation.html#g0326e4ec6e9082ac70f32df5edc6eb5f">PxEMPTY</a>) {}
<a name="l00420"></a>00420     
<a name="l00421"></a><a class="code" href="classPxVehicleAutoBoxData.html#c49aba5e4f725aa26137976c34dcb0d3">00421</a>     <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> <a class="code" href="classPxVehicleAutoBoxData.html#c49aba5e4f725aa26137976c34dcb0d3">getUpRatios</a>(<a class="code" href="classPxVehicleGearsData.html#31359110050aad08510b99208a304cb7">PxVehicleGearsData::Enum</a> a)<span class="keyword">  const </span>{<span class="keywordflow">return</span> mUpRatios[a];}
<a name="l00422"></a><a class="code" href="classPxVehicleAutoBoxData.html#8fadedab89e26a913b7c24b312ccf106">00422</a>     <span class="keywordtype">void</span> <a class="code" href="classPxVehicleAutoBoxData.html#8fadedab89e26a913b7c24b312ccf106">setUpRatios</a>(<a class="code" href="classPxVehicleGearsData.html#31359110050aad08510b99208a304cb7">PxVehicleGearsData::Enum</a> a, <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> ratio)   { mUpRatios[a] = ratio;}
<a name="l00423"></a>00423 
<a name="l00424"></a><a class="code" href="classPxVehicleAutoBoxData.html#4fb7d21937add9a843d54eed3161f3c8">00424</a>     <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> <a class="code" href="classPxVehicleAutoBoxData.html#4fb7d21937add9a843d54eed3161f3c8">getDownRatios</a>(<a class="code" href="classPxVehicleGearsData.html#31359110050aad08510b99208a304cb7">PxVehicleGearsData::Enum</a> a)<span class="keyword">  const </span>{<span class="keywordflow">return</span> mDownRatios[a];}
<a name="l00425"></a><a class="code" href="classPxVehicleAutoBoxData.html#a2353fe51236e4d02924eff9bccd94b2">00425</a>     <span class="keywordtype">void</span> <a class="code" href="classPxVehicleAutoBoxData.html#a2353fe51236e4d02924eff9bccd94b2">setDownRatios</a>(<a class="code" href="classPxVehicleGearsData.html#31359110050aad08510b99208a304cb7">PxVehicleGearsData::Enum</a> a, <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> ratio)   { mDownRatios[a] = ratio;}
<a name="l00426"></a>00426 <span class="comment">//~serialization</span>
<a name="l00427"></a>00427 };
<a name="l00428"></a>00428 <a class="code" href="group__foundation.html#gb12cc8cbd08c9c19ab0d40b7f789012e">PX_COMPILE_TIME_ASSERT</a>(0==(<span class="keyword">sizeof</span>(<a class="code" href="classPxVehicleAutoBoxData.html">PxVehicleAutoBoxData</a>)&amp; 0x0f));
<a name="l00429"></a>00429 
<a name="l00430"></a><a class="code" href="classPxVehicleDifferential4WData.html">00430</a> <span class="keyword">class </span><a class="code" href="classPxVehicleDifferential4WData.html">PxVehicleDifferential4WData</a>
<a name="l00431"></a>00431 {
<a name="l00432"></a>00432 <span class="keyword">public</span>:
<a name="l00433"></a>00433 
<a name="l00434"></a><a class="code" href="classPxVehicleDifferential4WData.html#be694ed054b9f8747c22bcd3fe251b98">00434</a>     <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classPxVehicleDriveSimData4W.html" title="Data structure describing the drive model components of a vehicle with up to 4 driven...">PxVehicleDriveSimData4W</a>;
<a name="l00435"></a>00435 
<a name="l00436"></a><a class="code" href="classPxVehicleDifferential4WData.html#17b180dce7605d603eb5a562bc70949d">00436</a>     <span class="keyword">enum</span> <a class="code" href="classPxVehicleDifferential4WData.html#17b180dce7605d603eb5a562bc70949d">Enum</a>
<a name="l00437"></a>00437     {
<a name="l00438"></a><a class="code" href="classPxVehicleDifferential4WData.html#17b180dce7605d603eb5a562bc70949df137d75c501bf33622f4a46b52ccdcf5">00438</a>         eDIFF_TYPE_LS_4WD,          <span class="comment">//limited slip differential for car with 4 driven wheels</span>
<a name="l00439"></a><a class="code" href="classPxVehicleDifferential4WData.html#17b180dce7605d603eb5a562bc70949d2a059ec5ff100b4880c977de39966672">00439</a>         eDIFF_TYPE_LS_FRONTWD,      <span class="comment">//limited slip differential for car with front-wheel drive</span>
<a name="l00440"></a><a class="code" href="classPxVehicleDifferential4WData.html#17b180dce7605d603eb5a562bc70949d1059cfcc744ff0f55463741f4cc95f74">00440</a>         eDIFF_TYPE_LS_REARWD,       <span class="comment">//limited slip differential for car with rear-wheel drive</span>
<a name="l00441"></a><a class="code" href="classPxVehicleDifferential4WData.html#17b180dce7605d603eb5a562bc70949d1a016da5b0b2f64351019af46c53be41">00441</a>         eDIFF_TYPE_OPEN_4WD,        <span class="comment">//open differential for car with 4 driven wheels </span>
<a name="l00442"></a><a class="code" href="classPxVehicleDifferential4WData.html#17b180dce7605d603eb5a562bc70949d8d3a2f5e262496c483769ae2767e9ffa">00442</a>         eDIFF_TYPE_OPEN_FRONTWD,    <span class="comment">//open differential for car with front-wheel drive</span>
<a name="l00443"></a><a class="code" href="classPxVehicleDifferential4WData.html#17b180dce7605d603eb5a562bc70949d611240968c929405aa82dd5c1cb72b26">00443</a>         eDIFF_TYPE_OPEN_REARWD,     <span class="comment">//open differential for car with rear-wheel drive</span>
<a name="l00444"></a><a class="code" href="classPxVehicleDifferential4WData.html#17b180dce7605d603eb5a562bc70949de26ab9ba0e3360983ece156521c7bf8f">00444</a>         eMAX_NB_DIFF_TYPES
<a name="l00445"></a>00445     };
<a name="l00446"></a>00446 
<a name="l00447"></a><a class="code" href="classPxVehicleDifferential4WData.html#87b843efc25143193fea2e7112aadc41">00447</a>     <a class="code" href="classPxVehicleDifferential4WData.html">PxVehicleDifferential4WData</a>()
<a name="l00448"></a>00448         :   mFrontRearSplit(0.45f),
<a name="l00449"></a>00449             mFrontLeftRightSplit(0.5f),
<a name="l00450"></a>00450             mRearLeftRightSplit(0.5f),
<a name="l00451"></a>00451             mCentreBias(1.3f),
<a name="l00452"></a>00452             mFrontBias(1.3f),
<a name="l00453"></a>00453             mRearBias(1.3f),
<a name="l00454"></a>00454             mType(<a class="code" href="classPxVehicleDifferential4WData.html">PxVehicleDifferential4WData</a>::eDIFF_TYPE_LS_4WD)
<a name="l00455"></a>00455     {
<a name="l00456"></a>00456     }
<a name="l00457"></a>00457 
<a name="l00465"></a><a class="code" href="classPxVehicleDifferential4WData.html#bf1cd230ba06e57bc893defa8306534c">00465</a>     <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> mFrontRearSplit;
<a name="l00466"></a>00466 
<a name="l00474"></a><a class="code" href="classPxVehicleDifferential4WData.html#bba964b56bb9692a8345b6d76f0d7db1">00474</a>     <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> mFrontLeftRightSplit;
<a name="l00475"></a>00475 
<a name="l00483"></a><a class="code" href="classPxVehicleDifferential4WData.html#b001758215bac27aa489d7418e9c6c74">00483</a>     <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> mRearLeftRightSplit;
<a name="l00484"></a>00484 
<a name="l00493"></a><a class="code" href="classPxVehicleDifferential4WData.html#84514919359b78e59c359099406b7bac">00493</a>     <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> mCentreBias;
<a name="l00494"></a>00494 
<a name="l00503"></a><a class="code" href="classPxVehicleDifferential4WData.html#add4ad16050017edcb3c616536da1fe2">00503</a>     <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> mFrontBias;
<a name="l00504"></a>00504 
<a name="l00513"></a><a class="code" href="classPxVehicleDifferential4WData.html#a85fa0d81512ee0678351c32d3130ec7">00513</a>     <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> mRearBias;
<a name="l00514"></a>00514 
<a name="l00520"></a><a class="code" href="classPxVehicleDifferential4WData.html#78b1be63feb4ea10a8dc7a0b16ea09a7">00520</a>     <a class="code" href="classPxVehicleDifferential4WData.html#17b180dce7605d603eb5a562bc70949d">PxVehicleDifferential4WData::Enum</a> mType;
<a name="l00521"></a>00521 
<a name="l00522"></a>00522 <span class="keyword">private</span>:
<a name="l00523"></a>00523 
<a name="l00524"></a><a class="code" href="classPxVehicleDifferential4WData.html#182c0d18f4eb7375e75e6e26bc4328aa">00524</a>     <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> mPad[1];
<a name="l00525"></a>00525 
<a name="l00526"></a>00526     <span class="keywordtype">bool</span> <a class="code" href="classPxVehicleDriveSimData4W.html#fa8f53655e4b0298fa1a9ad0645ab437" title="Test if the 4W-drive simulation data has been setup with legal data.">isValid</a>() <span class="keyword">const</span>;
<a name="l00527"></a>00527 
<a name="l00528"></a>00528 <span class="comment">//serialization</span>
<a name="l00529"></a>00529 <span class="keyword">public</span>:
<a name="l00530"></a><a class="code" href="classPxVehicleDifferential4WData.html#0166606fc9f0ea2c7c00ce23a917a8a7">00530</a>     <a class="code" href="classPxVehicleDifferential4WData.html#0166606fc9f0ea2c7c00ce23a917a8a7">PxVehicleDifferential4WData</a>(<span class="keyword">const</span> <a class="code" href="group__foundation.html#g0326e4ec6e9082ac70f32df5edc6eb5f">PxEMPTY</a>) {}
<a name="l00531"></a>00531 <span class="comment">//~serialization</span>
<a name="l00532"></a>00532 };
<a name="l00533"></a>00533 <a class="code" href="group__foundation.html#gb12cc8cbd08c9c19ab0d40b7f789012e">PX_COMPILE_TIME_ASSERT</a>(0==(<span class="keyword">sizeof</span>(<a class="code" href="classPxVehicleDifferential4WData.html">PxVehicleDifferential4WData</a>)&amp; 0x0f));
<a name="l00534"></a>00534 
<a name="l00535"></a><a class="code" href="classPxVehicleDifferentialNWData.html">00535</a> <span class="keyword">class </span><a class="code" href="classPxVehicleDifferentialNWData.html">PxVehicleDifferentialNWData</a>
<a name="l00536"></a>00536 {
<a name="l00537"></a>00537 <span class="keyword">public</span>:
<a name="l00538"></a>00538 
<a name="l00539"></a><a class="code" href="classPxVehicleDifferentialNWData.html#966a53de4d7949668cafafe064045841">00539</a>     <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classPxVehicleDriveSimDataNW.html" title="Data structure describing configuration data of a vehicle with up to PX_MAX_NB_WHEELS...">PxVehicleDriveSimDataNW</a>;
<a name="l00540"></a><a class="code" href="classPxVehicleDifferentialNWData.html#a960a335429c764ff7e258a0ec3ab5f0">00540</a>     <span class="keyword">friend</span> <span class="keyword">class </span>PxVehicleUpdate;
<a name="l00541"></a>00541 
<a name="l00542"></a><a class="code" href="classPxVehicleDifferentialNWData.html#a363bb07cd4533cfee8a59bc14d03c10">00542</a>     <a class="code" href="classPxVehicleDifferentialNWData.html">PxVehicleDifferentialNWData</a>()
<a name="l00543"></a>00543     {
<a name="l00544"></a>00544         <a class="code" href="group__foundation.html#g3b7937d1226ad04a370386837b538fe5" title="Sets the bytes of the provided buffer to the specified value.">PxMemSet</a>(mBitmapBuffer, 0, <span class="keyword">sizeof</span>(<a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a>) * (((<a class="code" href="group__vehicle.html#ga52f6479b78eccd706af05e1e0a0c43f" title="This number is the maximum number of wheels allowed for a vehicle.">PX_MAX_NB_WHEELS</a> + 31) &amp; ~31) &gt;&gt; 5));
<a name="l00545"></a>00545         mNbDrivenWheels=0;
<a name="l00546"></a>00546         mInvNbDrivenWheels=0.0f;
<a name="l00547"></a>00547     }
<a name="l00548"></a>00548 
<a name="l00556"></a>00556     <span class="keywordtype">void</span> setDrivenWheel(<span class="keyword">const</span> <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a> wheelId, <span class="keyword">const</span> <span class="keywordtype">bool</span> drivenState);
<a name="l00557"></a>00557 
<a name="l00561"></a>00561     <span class="keywordtype">bool</span> getIsDrivenWheel(<span class="keyword">const</span> <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a> wheelId) <span class="keyword">const</span>;
<a name="l00562"></a>00562 
<a name="l00563"></a>00563 <span class="keyword">private</span>:
<a name="l00564"></a>00564 
<a name="l00565"></a><a class="code" href="classPxVehicleDifferentialNWData.html#7cbdd47808542cbabbd7486b8ab73151">00565</a>     <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a> mBitmapBuffer[((<a class="code" href="group__vehicle.html#ga52f6479b78eccd706af05e1e0a0c43f" title="This number is the maximum number of wheels allowed for a vehicle.">PX_MAX_NB_WHEELS</a> + 31) &amp; ~31) &gt;&gt; 5];
<a name="l00566"></a><a class="code" href="classPxVehicleDifferentialNWData.html#d568184c553c242cd8dac918d3a39eb9">00566</a>     <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a> mNbDrivenWheels;
<a name="l00567"></a><a class="code" href="classPxVehicleDifferentialNWData.html#7dad368357aa927245c645706cc0e280">00567</a>     <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> mInvNbDrivenWheels;
<a name="l00568"></a><a class="code" href="classPxVehicleDifferentialNWData.html#ef3d841f346427763b04148b07ad76bd">00568</a>     <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a> mPad;
<a name="l00569"></a>00569 
<a name="l00570"></a>00570     <span class="keywordtype">bool</span> isValid() <span class="keyword">const</span>;
<a name="l00571"></a>00571 
<a name="l00572"></a>00572 <span class="comment">//serialization</span>
<a name="l00573"></a>00573 <span class="keyword">public</span>:
<a name="l00574"></a><a class="code" href="classPxVehicleDifferentialNWData.html#df2433f5f82e770290a30dfe1eda3a81">00574</a>     <a class="code" href="classPxVehicleDifferentialNWData.html#df2433f5f82e770290a30dfe1eda3a81">PxVehicleDifferentialNWData</a>(<span class="keyword">const</span> <a class="code" href="group__foundation.html#g0326e4ec6e9082ac70f32df5edc6eb5f">PxEMPTY</a>) {}
<a name="l00575"></a>00575     <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a> getDrivenWheelStatus() <span class="keyword">const</span>;
<a name="l00576"></a>00576     <span class="keywordtype">void</span> setDrivenWheelStatus(<a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a> status);
<a name="l00577"></a>00577 <span class="comment">//~serialization</span>
<a name="l00578"></a>00578 };
<a name="l00579"></a>00579 <a class="code" href="group__foundation.html#gb12cc8cbd08c9c19ab0d40b7f789012e">PX_COMPILE_TIME_ASSERT</a>(0==(<span class="keyword">sizeof</span>(<a class="code" href="classPxVehicleDifferentialNWData.html">PxVehicleDifferentialNWData</a>)&amp; 0x0f));
<a name="l00580"></a>00580 
<a name="l00581"></a>00581 
<a name="l00582"></a><a class="code" href="classPxVehicleAckermannGeometryData.html">00582</a> <span class="keyword">class </span><a class="code" href="classPxVehicleAckermannGeometryData.html">PxVehicleAckermannGeometryData</a>
<a name="l00583"></a>00583 {
<a name="l00584"></a>00584 <span class="keyword">public</span>:
<a name="l00585"></a>00585 
<a name="l00586"></a><a class="code" href="classPxVehicleAckermannGeometryData.html#be694ed054b9f8747c22bcd3fe251b98">00586</a>     <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classPxVehicleDriveSimData4W.html" title="Data structure describing the drive model components of a vehicle with up to 4 driven...">PxVehicleDriveSimData4W</a>;
<a name="l00587"></a>00587 
<a name="l00588"></a><a class="code" href="classPxVehicleAckermannGeometryData.html#67df50348629357c2034e8517817e896">00588</a>     <a class="code" href="classPxVehicleAckermannGeometryData.html">PxVehicleAckermannGeometryData</a>()
<a name="l00589"></a>00589         :   mAccuracy(1.0f),
<a name="l00590"></a>00590             mFrontWidth(0.0f),      <span class="comment">//Must be filled out </span>
<a name="l00591"></a>00591             mRearWidth(0.0f),       <span class="comment">//Must be filled out</span>
<a name="l00592"></a>00592             mAxleSeparation(0.0f)   <span class="comment">//Must be filled out</span>
<a name="l00593"></a>00593     {
<a name="l00594"></a>00594     }
<a name="l00595"></a>00595 
<a name="l00611"></a><a class="code" href="classPxVehicleAckermannGeometryData.html#f039623f85305bb425d9bd057810d072">00611</a>     <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> mAccuracy;
<a name="l00612"></a>00612 
<a name="l00620"></a><a class="code" href="classPxVehicleAckermannGeometryData.html#b11fb980c1082f7bcec722a16faa91a2">00620</a>     <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> mFrontWidth;     
<a name="l00621"></a>00621 
<a name="l00629"></a><a class="code" href="classPxVehicleAckermannGeometryData.html#d1782c61ec9515dee01722f9620d4b54">00629</a>     <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> mRearWidth;      
<a name="l00630"></a>00630 
<a name="l00638"></a><a class="code" href="classPxVehicleAckermannGeometryData.html#a3665a214eb8b1188a1c8fdd66f7f74d">00638</a>     <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> mAxleSeparation; 
<a name="l00639"></a>00639 
<a name="l00640"></a>00640 <span class="keyword">private</span>:
<a name="l00641"></a>00641 
<a name="l00642"></a>00642     <span class="keywordtype">bool</span> <a class="code" href="classPxVehicleDriveSimData4W.html#fa8f53655e4b0298fa1a9ad0645ab437" title="Test if the 4W-drive simulation data has been setup with legal data.">isValid</a>() <span class="keyword">const</span>;
<a name="l00643"></a>00643 
<a name="l00644"></a>00644 <span class="comment">//serialization</span>
<a name="l00645"></a>00645 <span class="keyword">public</span>:
<a name="l00646"></a><a class="code" href="classPxVehicleAckermannGeometryData.html#6d15ee641598033fef887c399f547422">00646</a>     <a class="code" href="classPxVehicleAckermannGeometryData.html#6d15ee641598033fef887c399f547422">PxVehicleAckermannGeometryData</a>(<span class="keyword">const</span> <a class="code" href="group__foundation.html#g0326e4ec6e9082ac70f32df5edc6eb5f">PxEMPTY</a>) {}
<a name="l00647"></a>00647 <span class="comment">//~serialization</span>
<a name="l00648"></a>00648 };
<a name="l00649"></a>00649 <a class="code" href="group__foundation.html#gb12cc8cbd08c9c19ab0d40b7f789012e">PX_COMPILE_TIME_ASSERT</a>(0==(<span class="keyword">sizeof</span>(<a class="code" href="classPxVehicleAckermannGeometryData.html">PxVehicleAckermannGeometryData</a>)&amp; 0x0f));
<a name="l00650"></a>00650 
<a name="l00655"></a><a class="code" href="structPxVehicleClutchAccuracyMode.html">00655</a> <span class="keyword">struct </span><a class="code" href="structPxVehicleClutchAccuracyMode.html" title="Choose between a potentially more expensive but more accurate solution to the clutch...">PxVehicleClutchAccuracyMode</a>
<a name="l00656"></a>00656 {
<a name="l00657"></a><a class="code" href="structPxVehicleClutchAccuracyMode.html#8cb4ae31cf929f344f2049939b9f61ce">00657</a>     <span class="keyword">enum</span> <a class="code" href="structPxVehicleClutchAccuracyMode.html#8cb4ae31cf929f344f2049939b9f61ce">Enum</a>
<a name="l00658"></a>00658     {
<a name="l00659"></a><a class="code" href="structPxVehicleClutchAccuracyMode.html#8cb4ae31cf929f344f2049939b9f61ce24941ada450715997908c52cbc022e49">00659</a>         eESTIMATE = 0,
<a name="l00660"></a><a class="code" href="structPxVehicleClutchAccuracyMode.html#8cb4ae31cf929f344f2049939b9f61ce23c78577b48981d88171808130f5869b">00660</a>         eBEST_POSSIBLE
<a name="l00661"></a>00661     };
<a name="l00662"></a>00662 };
<a name="l00663"></a>00663 
<a name="l00664"></a><a class="code" href="classPxVehicleClutchData.html">00664</a> <span class="keyword">class </span><a class="code" href="classPxVehicleClutchData.html">PxVehicleClutchData</a>
<a name="l00665"></a>00665 {
<a name="l00666"></a>00666 <span class="keyword">public</span>:
<a name="l00667"></a>00667 
<a name="l00668"></a><a class="code" href="classPxVehicleClutchData.html#a2f8773ce851c65e3c7d31b8991ea8f8">00668</a>     <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classPxVehicleDriveSimData.html" title="Data structure describing non-wheel configuration data of a vehicle that has engine...">PxVehicleDriveSimData</a>;
<a name="l00669"></a>00669 
<a name="l00670"></a><a class="code" href="classPxVehicleClutchData.html#963c71a977c0bfbb465fd75d1e106dc0">00670</a>     <a class="code" href="classPxVehicleClutchData.html">PxVehicleClutchData</a>()
<a name="l00671"></a>00671         :   mStrength(10.0f),
<a name="l00672"></a>00672             mAccuracyMode(<a class="code" href="structPxVehicleClutchAccuracyMode.html" title="Choose between a potentially more expensive but more accurate solution to the clutch...">PxVehicleClutchAccuracyMode</a>::eBEST_POSSIBLE),
<a name="l00673"></a>00673             mEstimateIterations(5)
<a name="l00674"></a>00674     {
<a name="l00675"></a>00675     }
<a name="l00676"></a>00676 
<a name="l00695"></a><a class="code" href="classPxVehicleClutchData.html#fa3118a1b2b8d091a96a29f1b03ec339">00695</a>     <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> mStrength;
<a name="l00696"></a>00696 
<a name="l00711"></a><a class="code" href="classPxVehicleClutchData.html#8f1a138c63ae5bd015ed18de90168dab">00711</a>     <a class="code" href="structPxVehicleClutchAccuracyMode.html#8cb4ae31cf929f344f2049939b9f61ce">PxVehicleClutchAccuracyMode::Enum</a> mAccuracyMode;
<a name="l00712"></a>00712 
<a name="l00724"></a><a class="code" href="classPxVehicleClutchData.html#64f27aab12c4d3f6deae242e04c95e3f">00724</a>     <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a> mEstimateIterations;
<a name="l00725"></a>00725 
<a name="l00726"></a>00726 <span class="keyword">private</span>:
<a name="l00727"></a>00727 
<a name="l00728"></a><a class="code" href="classPxVehicleClutchData.html#64734e299b40dacd3de949b2cabd8b67">00728</a>     <a class="code" href="namespacephysx.html#3849f86abc21d3a58949481603fe8309">PxU8</a> mPad[4];
<a name="l00729"></a>00729 
<a name="l00730"></a>00730     <span class="keywordtype">bool</span> <a class="code" href="classPxVehicleDriveSimData.html#a9721ce91e1d9d3a0da51ad8e657d355" title="Test that a PxVehicleDriveSimData instance has been configured with legal data. Call...">isValid</a>() <span class="keyword">const</span>;
<a name="l00731"></a>00731 
<a name="l00732"></a>00732 <span class="comment">//serialization</span>
<a name="l00733"></a>00733 <span class="keyword">public</span>:
<a name="l00734"></a><a class="code" href="classPxVehicleClutchData.html#5f50479c769bfc6ae880b92036abce8d">00734</a>     <a class="code" href="classPxVehicleClutchData.html#5f50479c769bfc6ae880b92036abce8d">PxVehicleClutchData</a>(<span class="keyword">const</span> <a class="code" href="group__foundation.html#g0326e4ec6e9082ac70f32df5edc6eb5f">PxEMPTY</a>) {}
<a name="l00735"></a>00735 <span class="comment">//~serialization</span>
<a name="l00736"></a>00736 };
<a name="l00737"></a>00737 <a class="code" href="group__foundation.html#gb12cc8cbd08c9c19ab0d40b7f789012e">PX_COMPILE_TIME_ASSERT</a>(0==(<span class="keyword">sizeof</span>(<a class="code" href="classPxVehicleClutchData.html">PxVehicleClutchData</a>)&amp; 0x0f));
<a name="l00738"></a>00738 
<a name="l00739"></a>00739 
<a name="l00762"></a><a class="code" href="classPxVehicleTireLoadFilterData.html">00762</a> <span class="keyword">class </span><a class="code" href="classPxVehicleTireLoadFilterData.html" title="Tire load variation can be strongly dependent on the time-step so it is a good idea...">PxVehicleTireLoadFilterData</a>
<a name="l00763"></a>00763 {
<a name="l00764"></a>00764 <span class="keyword">public</span>:
<a name="l00765"></a>00765 
<a name="l00766"></a><a class="code" href="classPxVehicleTireLoadFilterData.html#cecdfc4ceea29cbb9a3fd946c3848bf4">00766</a>     <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classPxVehicleWheelsSimData.html" title="Data structure describing configuration data of a vehicle with up to 20 wheels.">PxVehicleWheelsSimData</a>;
<a name="l00767"></a>00767 
<a name="l00768"></a><a class="code" href="classPxVehicleTireLoadFilterData.html#4b81e279ec039f3da510ba6939ccdf1b">00768</a>     <a class="code" href="classPxVehicleTireLoadFilterData.html" title="Tire load variation can be strongly dependent on the time-step so it is a good idea...">PxVehicleTireLoadFilterData</a>()
<a name="l00769"></a>00769         :   mMinNormalisedLoad(0),
<a name="l00770"></a>00770             mMinFilteredNormalisedLoad(0.2308f),
<a name="l00771"></a>00771             mMaxNormalisedLoad(3.0f),
<a name="l00772"></a>00772             mMaxFilteredNormalisedLoad(3.0f)
<a name="l00773"></a>00773     {
<a name="l00774"></a>00774         mDenominator=1.0f/(mMaxNormalisedLoad - mMinNormalisedLoad);
<a name="l00775"></a>00775     }
<a name="l00776"></a>00776 
<a name="l00780"></a><a class="code" href="classPxVehicleTireLoadFilterData.html#0c2512fc5ecaeeaeb3aa47fea8b657b8">00780</a>     <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> mMinNormalisedLoad; 
<a name="l00781"></a>00781 
<a name="l00785"></a><a class="code" href="classPxVehicleTireLoadFilterData.html#5c2c9701a5c34178ac7b655acdb57ad9">00785</a>     <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> mMinFilteredNormalisedLoad; 
<a name="l00786"></a>00786 
<a name="l00790"></a><a class="code" href="classPxVehicleTireLoadFilterData.html#9412523ff0085a47c88048e25d4165ed">00790</a>     <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> mMaxNormalisedLoad;
<a name="l00791"></a>00791         
<a name="l00795"></a><a class="code" href="classPxVehicleTireLoadFilterData.html#eb0c9919b420e10e10b6e25ded451deb">00795</a>     <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> mMaxFilteredNormalisedLoad;
<a name="l00796"></a>00796 
<a name="l00797"></a><a class="code" href="classPxVehicleTireLoadFilterData.html#effc037138b03c68e35febcf98113e3b">00797</a>     <a class="code" href="group__foundation.html#g6a774eed3cad34b0f636332a3d28c6bb">PX_FORCE_INLINE</a> <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> <a class="code" href="classPxVehicleTireLoadFilterData.html#effc037138b03c68e35febcf98113e3b">getDenominator</a>()<span class="keyword"> const </span>{<span class="keywordflow">return</span> mDenominator;}
<a name="l00798"></a>00798 
<a name="l00799"></a>00799 <span class="keyword">private</span>:
<a name="l00800"></a>00800 
<a name="l00804"></a>00804     <span class="comment">//1.0f/(mMaxNormalisedLoad-mMinNormalisedLoad) for quick calculations</span>
<a name="l00805"></a><a class="code" href="classPxVehicleTireLoadFilterData.html#3465f5abcbd92a587243b56cfa11b3f9">00805</a>     <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> mDenominator;
<a name="l00806"></a>00806 
<a name="l00807"></a><a class="code" href="classPxVehicleTireLoadFilterData.html#5cfdd6e34435331fb89c2d10209ecc70">00807</a>     <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a> <a class="code" href="classPxVehicleWheelsSimData.html#7baa295b6de37e9b30c12d24a898d67c">mPad</a>[3];
<a name="l00808"></a>00808 
<a name="l00809"></a>00809     <span class="keywordtype">bool</span> <a class="code" href="classPxVehicleWheelsSimData.html#00b12c1e722dd0e30410618a8969f301" title="Test if wheel simulation data has been setup with legal values.">isValid</a>() <span class="keyword">const</span>;
<a name="l00810"></a>00810 
<a name="l00811"></a>00811 <span class="comment">//serialization</span>
<a name="l00812"></a>00812 <span class="keyword">public</span>:
<a name="l00813"></a><a class="code" href="classPxVehicleTireLoadFilterData.html#b856f54f8e45dc86b9b1a396ccfa05ff">00813</a>     <a class="code" href="classPxVehicleTireLoadFilterData.html#b856f54f8e45dc86b9b1a396ccfa05ff">PxVehicleTireLoadFilterData</a>(<span class="keyword">const</span> <a class="code" href="group__foundation.html#g0326e4ec6e9082ac70f32df5edc6eb5f">PxEMPTY</a>) {}
<a name="l00814"></a>00814 <span class="comment">//~serialization</span>
<a name="l00815"></a>00815 };
<a name="l00816"></a>00816 <a class="code" href="group__foundation.html#gb12cc8cbd08c9c19ab0d40b7f789012e">PX_COMPILE_TIME_ASSERT</a>(0==(<span class="keyword">sizeof</span>(<a class="code" href="classPxVehicleTireLoadFilterData.html" title="Tire load variation can be strongly dependent on the time-step so it is a good idea...">PxVehicleTireLoadFilterData</a>)&amp; 0x0f));
<a name="l00817"></a>00817 
<a name="l00818"></a><a class="code" href="classPxVehicleWheelData.html">00818</a> <span class="keyword">class </span><a class="code" href="classPxVehicleWheelData.html">PxVehicleWheelData</a>
<a name="l00819"></a>00819 {
<a name="l00820"></a>00820 <span class="keyword">public</span>:
<a name="l00821"></a>00821 
<a name="l00822"></a><a class="code" href="classPxVehicleWheelData.html#4c2a2bf5a268389976a6f3c6ffeb1806">00822</a>     <span class="keyword">friend</span> <span class="keyword">class </span>PxVehicleWheels4SimData;
<a name="l00823"></a>00823 
<a name="l00824"></a><a class="code" href="classPxVehicleWheelData.html#0041dd83bf7afcd53489fa1fa9727496">00824</a>     <a class="code" href="classPxVehicleWheelData.html">PxVehicleWheelData</a>()
<a name="l00825"></a>00825         :   mRadius(0.0f),              <span class="comment">//Must be filled out</span>
<a name="l00826"></a>00826             mWidth(0.0f),
<a name="l00827"></a>00827             mMass(20.0f),
<a name="l00828"></a>00828             mMOI(0.0f),                 <span class="comment">//Must be filled out</span>
<a name="l00829"></a>00829             mDampingRate(0.25f),
<a name="l00830"></a>00830             mMaxBrakeTorque(1500.0f),
<a name="l00831"></a>00831             mMaxHandBrakeTorque(0.0f),  
<a name="l00832"></a>00832             mMaxSteer(0.0f),            
<a name="l00833"></a>00833             mToeAngle(0.0f),
<a name="l00834"></a>00834             mRecipRadius(0.0f),         <span class="comment">//Must be filled out</span>
<a name="l00835"></a>00835             mRecipMOI(0.0f)             <span class="comment">//Must be filled out</span>
<a name="l00836"></a>00836     {
<a name="l00837"></a>00837     }
<a name="l00838"></a>00838 
<a name="l00846"></a><a class="code" href="classPxVehicleWheelData.html#f1daeb2e387931179e342a87a0646313">00846</a>     <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> mRadius;
<a name="l00847"></a>00847 
<a name="l00855"></a><a class="code" href="classPxVehicleWheelData.html#1d1bd99f02c6685047a7ce5891d4287e">00855</a>     <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> mWidth;
<a name="l00856"></a>00856 
<a name="l00864"></a><a class="code" href="classPxVehicleWheelData.html#0196dc9f3e493cb2925a7d138a546203">00864</a>     <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> mMass;
<a name="l00865"></a>00865 
<a name="l00873"></a><a class="code" href="classPxVehicleWheelData.html#2911987cc6282a8a5beae6024060cd7b">00873</a>     <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> mMOI;
<a name="l00874"></a>00874 
<a name="l00882"></a><a class="code" href="classPxVehicleWheelData.html#ec975503b12597aa6c3f17a4d6f14671">00882</a>     <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> mDampingRate;
<a name="l00883"></a>00883 
<a name="l00891"></a><a class="code" href="classPxVehicleWheelData.html#ef669dcda5387646e25a7ed6a318703a">00891</a>     <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> mMaxBrakeTorque;
<a name="l00892"></a>00892 
<a name="l00900"></a><a class="code" href="classPxVehicleWheelData.html#6fdec4c9f3f32371b2c65ff57a9d8ba3">00900</a>     <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> mMaxHandBrakeTorque;
<a name="l00901"></a>00901 
<a name="l00909"></a><a class="code" href="classPxVehicleWheelData.html#d40d340e885cb2667d305a25dba1db1c">00909</a>     <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> mMaxSteer;
<a name="l00910"></a>00910 
<a name="l00918"></a><a class="code" href="classPxVehicleWheelData.html#914c7de59fd8443c371e30b42b2e6d84">00918</a>     <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> mToeAngle;<span class="comment">//in radians</span>
<a name="l00919"></a>00919 
<a name="l00925"></a><a class="code" href="classPxVehicleWheelData.html#99064058a00ca8b9e025535bf0f938c2">00925</a>     <a class="code" href="group__foundation.html#g6a774eed3cad34b0f636332a3d28c6bb">PX_FORCE_INLINE</a> <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> <a class="code" href="classPxVehicleWheelData.html#99064058a00ca8b9e025535bf0f938c2" title="Return value equal to 1.0f/mRadius.">getRecipRadius</a>()<span class="keyword"> const </span>{<span class="keywordflow">return</span> mRecipRadius;}
<a name="l00926"></a>00926 
<a name="l00932"></a><a class="code" href="classPxVehicleWheelData.html#0803b9d20a0dc53b2a0bbb9d1177b8fd">00932</a>     <a class="code" href="group__foundation.html#g6a774eed3cad34b0f636332a3d28c6bb">PX_FORCE_INLINE</a> <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> <a class="code" href="classPxVehicleWheelData.html#0803b9d20a0dc53b2a0bbb9d1177b8fd" title="Return value equal to 1.0f/mRecipMOI.">getRecipMOI</a>()<span class="keyword"> const </span>{<span class="keywordflow">return</span> mRecipMOI;}
<a name="l00933"></a>00933 
<a name="l00934"></a>00934 <span class="keyword">private</span>:
<a name="l00935"></a>00935 
<a name="l00943"></a><a class="code" href="classPxVehicleWheelData.html#f3a913e892378dc31d602f771ded9256">00943</a>     <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> mRecipRadius;
<a name="l00944"></a>00944 
<a name="l00952"></a><a class="code" href="classPxVehicleWheelData.html#789fd306f9295097cc51cd7cba731d76">00952</a>     <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> mRecipMOI;
<a name="l00953"></a>00953 
<a name="l00954"></a><a class="code" href="classPxVehicleWheelData.html#0bfd3df01cfeb3b9fd3de0edc1437ab9">00954</a>     <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> mPad[1];
<a name="l00955"></a>00955 
<a name="l00956"></a>00956     <span class="keywordtype">bool</span> isValid() <span class="keyword">const</span>;
<a name="l00957"></a>00957 };
<a name="l00958"></a>00958 <a class="code" href="group__foundation.html#gb12cc8cbd08c9c19ab0d40b7f789012e">PX_COMPILE_TIME_ASSERT</a>(0==(<span class="keyword">sizeof</span>(<a class="code" href="classPxVehicleWheelData.html">PxVehicleWheelData</a>)&amp; 0x0f));
<a name="l00959"></a>00959 
<a name="l00960"></a><a class="code" href="classPxVehicleSuspensionData.html">00960</a> <span class="keyword">class </span><a class="code" href="classPxVehicleSuspensionData.html">PxVehicleSuspensionData</a>
<a name="l00961"></a>00961 {
<a name="l00962"></a>00962 <span class="keyword">public</span>:
<a name="l00963"></a>00963 
<a name="l00964"></a><a class="code" href="classPxVehicleSuspensionData.html#4c2a2bf5a268389976a6f3c6ffeb1806">00964</a>     <span class="keyword">friend</span> <span class="keyword">class </span>PxVehicleWheels4SimData;
<a name="l00965"></a>00965 
<a name="l00966"></a><a class="code" href="classPxVehicleSuspensionData.html#8edf19ece4a7b7c32af4aa823e98c434">00966</a>     <a class="code" href="classPxVehicleSuspensionData.html">PxVehicleSuspensionData</a>()
<a name="l00967"></a>00967         :   mSpringStrength(0.0f),
<a name="l00968"></a>00968             mSpringDamperRate(0.0f),
<a name="l00969"></a>00969             mMaxCompression(0.3f),
<a name="l00970"></a>00970             mMaxDroop(0.1f),
<a name="l00971"></a>00971             mSprungMass(0.0f),
<a name="l00972"></a>00972             mCamberAtRest(0.0f),
<a name="l00973"></a>00973             mCamberAtMaxCompression(0.0f),
<a name="l00974"></a>00974             mCamberAtMaxDroop(0.0f),
<a name="l00975"></a>00975             mRecipMaxCompression(1.0f),
<a name="l00976"></a>00976             mRecipMaxDroop(1.0f)
<a name="l00977"></a>00977     {
<a name="l00978"></a>00978     }
<a name="l00979"></a>00979     
<a name="l00987"></a><a class="code" href="classPxVehicleSuspensionData.html#d6c229a583ec71fa2f3192de790528a7">00987</a>     <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> mSpringStrength;
<a name="l00988"></a>00988 
<a name="l00996"></a><a class="code" href="classPxVehicleSuspensionData.html#bd5b02e608d8d8e06ec7932ccbe514de">00996</a>     <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> mSpringDamperRate;
<a name="l00997"></a>00997 
<a name="l01005"></a><a class="code" href="classPxVehicleSuspensionData.html#41931d05cc3610c523139d4f975cced6">01005</a>     <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> mMaxCompression;
<a name="l01006"></a>01006 
<a name="l01014"></a><a class="code" href="classPxVehicleSuspensionData.html#20d5e1ae07792ecf7f0180c3456dd5ce">01014</a>     <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> mMaxDroop;
<a name="l01015"></a>01015 
<a name="l01047"></a><a class="code" href="classPxVehicleSuspensionData.html#23f96767e47ea394bbb10ee597f2d9d3">01047</a>     <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> mSprungMass;
<a name="l01048"></a>01048 
<a name="l01057"></a><a class="code" href="classPxVehicleSuspensionData.html#009eee43a101ae543e3b1fc551792653">01057</a>     <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> mCamberAtRest;
<a name="l01058"></a>01058 
<a name="l01069"></a><a class="code" href="classPxVehicleSuspensionData.html#fbfa04e080c4318d167019151cd9fc23">01069</a>     <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> mCamberAtMaxCompression; 
<a name="l01070"></a>01070 
<a name="l01081"></a><a class="code" href="classPxVehicleSuspensionData.html#057401ec58e0e0515b70e1d23c840cb7">01081</a>     <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> mCamberAtMaxDroop; 
<a name="l01082"></a>01082 
<a name="l01090"></a><a class="code" href="classPxVehicleSuspensionData.html#062437fd240388ec7affa0d73453d593">01090</a>     <a class="code" href="group__foundation.html#g6a774eed3cad34b0f636332a3d28c6bb">PX_FORCE_INLINE</a> <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> <a class="code" href="classPxVehicleSuspensionData.html#062437fd240388ec7affa0d73453d593" title="Reciprocal of maximum compression.">getRecipMaxCompression</a>()<span class="keyword"> const </span>{<span class="keywordflow">return</span> mRecipMaxCompression;}
<a name="l01091"></a>01091 
<a name="l01099"></a><a class="code" href="classPxVehicleSuspensionData.html#35662179eb1bf193ca23f9da5bd5f253">01099</a>     <a class="code" href="group__foundation.html#g6a774eed3cad34b0f636332a3d28c6bb">PX_FORCE_INLINE</a> <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> <a class="code" href="classPxVehicleSuspensionData.html#35662179eb1bf193ca23f9da5bd5f253" title="Reciprocal of maximum droop.">getRecipMaxDroop</a>()<span class="keyword"> const </span>{<span class="keywordflow">return</span> mRecipMaxDroop;}
<a name="l01100"></a>01100 
<a name="l01106"></a><a class="code" href="classPxVehicleSuspensionData.html#2bec1ac8b8808407d0af0accfcc21e57">01106</a>     <span class="keywordtype">void</span> setMassAndPreserveNaturalFrequency(<span class="keyword">const</span> <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> newSprungMass)
<a name="l01107"></a>01107     {
<a name="l01108"></a>01108         <span class="keyword">const</span> <a class="code" href="namespacephysx.html#b4cf332bdb6e8b183e40b6973acc1e9b">PxF32</a> oldStrength = mSpringStrength;
<a name="l01109"></a>01109         <span class="keyword">const</span> <a class="code" href="namespacephysx.html#b4cf332bdb6e8b183e40b6973acc1e9b">PxF32</a> oldSprungMass = mSprungMass;
<a name="l01110"></a>01110         <span class="keyword">const</span> <a class="code" href="namespacephysx.html#b4cf332bdb6e8b183e40b6973acc1e9b">PxF32</a> newStrength = oldStrength * (newSprungMass / oldSprungMass);
<a name="l01111"></a>01111         mSpringStrength = newStrength;
<a name="l01112"></a>01112         mSprungMass = newSprungMass;
<a name="l01113"></a>01113     }
<a name="l01114"></a>01114 
<a name="l01115"></a>01115 <span class="keyword">private</span>:
<a name="l01116"></a>01116 
<a name="l01122"></a><a class="code" href="classPxVehicleSuspensionData.html#05c9ff8df5782ffefdb90595b20efbbf">01122</a>     <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> mRecipMaxCompression;
<a name="l01123"></a>01123 
<a name="l01129"></a><a class="code" href="classPxVehicleSuspensionData.html#ca07e38db13471eb6d3b54cb421aacfc">01129</a>     <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> mRecipMaxDroop;
<a name="l01130"></a>01130 
<a name="l01131"></a>01131     <span class="comment">//padding</span>
<a name="l01132"></a><a class="code" href="classPxVehicleSuspensionData.html#a84939cb947f9b7d600564a64982975d">01132</a>     <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> mPad[2];
<a name="l01133"></a>01133 
<a name="l01134"></a>01134     <span class="keywordtype">bool</span> isValid() <span class="keyword">const</span>;
<a name="l01135"></a>01135 };
<a name="l01136"></a>01136 <a class="code" href="group__foundation.html#gb12cc8cbd08c9c19ab0d40b7f789012e">PX_COMPILE_TIME_ASSERT</a>(0==(<span class="keyword">sizeof</span>(<a class="code" href="classPxVehicleSuspensionData.html">PxVehicleSuspensionData</a>)&amp; 0x0f));
<a name="l01137"></a>01137 
<a name="l01138"></a><a class="code" href="classPxVehicleAntiRollBarData.html">01138</a> <span class="keyword">class </span><a class="code" href="classPxVehicleAntiRollBarData.html">PxVehicleAntiRollBarData</a>
<a name="l01139"></a>01139 {
<a name="l01140"></a>01140 <span class="keyword">public</span>:
<a name="l01141"></a>01141 
<a name="l01142"></a><a class="code" href="classPxVehicleAntiRollBarData.html#cecdfc4ceea29cbb9a3fd946c3848bf4">01142</a>     <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classPxVehicleWheelsSimData.html" title="Data structure describing configuration data of a vehicle with up to 20 wheels.">PxVehicleWheelsSimData</a>;
<a name="l01143"></a>01143 
<a name="l01144"></a><a class="code" href="classPxVehicleAntiRollBarData.html#e926b0985fe5243a1e671405d19e9dac">01144</a>     <a class="code" href="classPxVehicleAntiRollBarData.html">PxVehicleAntiRollBarData</a>()
<a name="l01145"></a>01145         : mWheel0(0xffffffff),
<a name="l01146"></a>01146           mWheel1(0xffffffff),
<a name="l01147"></a>01147           mStiffness(0.0f)
<a name="l01148"></a>01148     {
<a name="l01149"></a>01149     }
<a name="l01150"></a>01150 
<a name="l01151"></a>01151     <span class="comment">/*</span>
<a name="l01152"></a>01152 <span class="comment">    \brief The anti-roll bar connects two wheels with indices mWheel0 and mWheel1</span>
<a name="l01153"></a>01153 <span class="comment">    */</span>
<a name="l01154"></a><a class="code" href="classPxVehicleAntiRollBarData.html#5896cff335146136d9459b0ca0456758">01154</a>     <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a> mWheel0;
<a name="l01155"></a>01155 
<a name="l01156"></a>01156     <span class="comment">/*</span>
<a name="l01157"></a>01157 <span class="comment">    \brief The anti-roll bar connects two wheels with indices mWheel0 and mWheel1</span>
<a name="l01158"></a>01158 <span class="comment">    */</span>
<a name="l01159"></a><a class="code" href="classPxVehicleAntiRollBarData.html#4864fc373455950fc554cce0d644ff39">01159</a>     <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a> mWheel1;
<a name="l01160"></a>01160 
<a name="l01161"></a>01161     <span class="comment">/*</span>
<a name="l01162"></a>01162 <span class="comment">    \brief The stiffness of the anti-roll bar.</span>
<a name="l01163"></a>01163 <span class="comment"></span>
<a name="l01164"></a>01164 <span class="comment">    \note Specified in kilograms per second-squared (kg s^-2).</span>
<a name="l01165"></a>01165 <span class="comment"></span>
<a name="l01166"></a>01166 <span class="comment">    &lt;b&gt;Range:&lt;/b&gt; [0, PX_MAX_F32)&lt;br&gt;</span>
<a name="l01167"></a>01167 <span class="comment">    */</span>
<a name="l01168"></a><a class="code" href="classPxVehicleAntiRollBarData.html#0d7c0f4f3a0acbc4fd52709959dc221d">01168</a>     <a class="code" href="namespacephysx.html#b4cf332bdb6e8b183e40b6973acc1e9b">PxF32</a> mStiffness;
<a name="l01169"></a>01169 
<a name="l01170"></a>01170 <span class="keyword">private</span>:
<a name="l01171"></a>01171 
<a name="l01172"></a><a class="code" href="classPxVehicleAntiRollBarData.html#3bc167f2dfbdf1d420337c3d113ce76d">01172</a>     <a class="code" href="namespacephysx.html#b4cf332bdb6e8b183e40b6973acc1e9b">PxF32</a> <a class="code" href="classPxVehicleWheelsSimData.html#7baa295b6de37e9b30c12d24a898d67c">mPad</a>[1];
<a name="l01173"></a>01173 
<a name="l01174"></a>01174     <span class="keywordtype">bool</span> <a class="code" href="classPxVehicleWheelsSimData.html#00b12c1e722dd0e30410618a8969f301" title="Test if wheel simulation data has been setup with legal values.">isValid</a>() <span class="keyword">const</span>;
<a name="l01175"></a>01175 };
<a name="l01176"></a>01176 <a class="code" href="group__foundation.html#gb12cc8cbd08c9c19ab0d40b7f789012e">PX_COMPILE_TIME_ASSERT</a>(0==(<span class="keyword">sizeof</span>(<a class="code" href="classPxVehicleAntiRollBarData.html">PxVehicleAntiRollBarData</a>)&amp; 0x0f));
<a name="l01177"></a>01177 
<a name="l01178"></a><a class="code" href="classPxVehicleTireData.html">01178</a> <span class="keyword">class </span><a class="code" href="classPxVehicleTireData.html">PxVehicleTireData</a>
<a name="l01179"></a>01179 {
<a name="l01180"></a>01180 <span class="keyword">public</span>:
<a name="l01181"></a><a class="code" href="classPxVehicleTireData.html#4c2a2bf5a268389976a6f3c6ffeb1806">01181</a>     <span class="keyword">friend</span> <span class="keyword">class </span>PxVehicleWheels4SimData;
<a name="l01182"></a>01182 
<a name="l01183"></a><a class="code" href="classPxVehicleTireData.html#4f7cde0fb3943e130fe35a786f649d1d">01183</a>     <a class="code" href="classPxVehicleTireData.html">PxVehicleTireData</a>()
<a name="l01184"></a>01184         :   mLatStiffX(2.0f),
<a name="l01185"></a>01185             mLatStiffY(0.3125f*(180.0f / <a class="code" href="group__foundation.html#gbcd49a429b8119de54375b3538ae8a8d">PxPi</a>)),
<a name="l01186"></a>01186             mLongitudinalStiffnessPerUnitGravity(1000.0f),
<a name="l01187"></a>01187             mCamberStiffnessPerUnitGravity(0.1f*(180.0f / <a class="code" href="group__foundation.html#gbcd49a429b8119de54375b3538ae8a8d">PxPi</a>)),
<a name="l01188"></a>01188             mType(0)
<a name="l01189"></a>01189     {
<a name="l01190"></a>01190         mFrictionVsSlipGraph[0][0]=0.0f;
<a name="l01191"></a>01191         mFrictionVsSlipGraph[0][1]=1.0f;
<a name="l01192"></a>01192         mFrictionVsSlipGraph[1][0]=0.1f;
<a name="l01193"></a>01193         mFrictionVsSlipGraph[1][1]=1.0f;
<a name="l01194"></a>01194         mFrictionVsSlipGraph[2][0]=1.0f;
<a name="l01195"></a>01195         mFrictionVsSlipGraph[2][1]=1.0f;
<a name="l01196"></a>01196 
<a name="l01197"></a>01197         mRecipLongitudinalStiffnessPerUnitGravity=1.0f/mLongitudinalStiffnessPerUnitGravity;
<a name="l01198"></a>01198 
<a name="l01199"></a>01199         mFrictionVsSlipGraphRecipx1Minusx0=1.0f/(mFrictionVsSlipGraph[1][0]-mFrictionVsSlipGraph[0][0]);
<a name="l01200"></a>01200         mFrictionVsSlipGraphRecipx2Minusx1=1.0f/(mFrictionVsSlipGraph[2][0]-mFrictionVsSlipGraph[1][0]);
<a name="l01201"></a>01201     }
<a name="l01202"></a>01202 
<a name="l01210"></a><a class="code" href="classPxVehicleTireData.html#d52ba7c872280fd9a52e728a052fc7ff">01210</a>     <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> mLatStiffX;
<a name="l01211"></a>01211 
<a name="l01227"></a><a class="code" href="classPxVehicleTireData.html#d2fa139cdff425babbf332384478a857">01227</a>     <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> mLatStiffY;
<a name="l01228"></a>01228 
<a name="l01240"></a><a class="code" href="classPxVehicleTireData.html#92083c9b5fbf957e4d4c54ab566b5457">01240</a>     <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> mLongitudinalStiffnessPerUnitGravity;
<a name="l01241"></a>01241 
<a name="l01253"></a><a class="code" href="classPxVehicleTireData.html#d279199240b57e9d20ad48a610ffa4b4">01253</a>     <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> mCamberStiffnessPerUnitGravity;
<a name="l01254"></a>01254 
<a name="l01288"></a><a class="code" href="classPxVehicleTireData.html#ab2bbd4b293db8fb9b94f310a59176a2">01288</a>     <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> mFrictionVsSlipGraph[3][2];
<a name="l01289"></a>01289 
<a name="l01297"></a><a class="code" href="classPxVehicleTireData.html#8a9469d1683718ba3e5a2d2632dd9218">01297</a>     <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a> mType;
<a name="l01298"></a>01298 
<a name="l01304"></a><a class="code" href="classPxVehicleTireData.html#de0259eb242f4e9e687fbd29d59d1ee1">01304</a>     <a class="code" href="group__foundation.html#g6a774eed3cad34b0f636332a3d28c6bb">PX_FORCE_INLINE</a> <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> <a class="code" href="classPxVehicleTireData.html#de0259eb242f4e9e687fbd29d59d1ee1" title="Return Cached value of 1.0/mLongitudinalStiffnessPerUnitGravity.">getRecipLongitudinalStiffnessPerUnitGravity</a>()<span class="keyword"> const </span>{<span class="keywordflow">return</span> mRecipLongitudinalStiffnessPerUnitGravity;}
<a name="l01305"></a>01305 
<a name="l01311"></a><a class="code" href="classPxVehicleTireData.html#80027d305819f6805bf73eb47d5b9be7">01311</a>     <a class="code" href="group__foundation.html#g6a774eed3cad34b0f636332a3d28c6bb">PX_FORCE_INLINE</a> <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> <a class="code" href="classPxVehicleTireData.html#80027d305819f6805bf73eb47d5b9be7" title="Return Cached value of 1.0f/(mFrictionVsSlipGraph[1][0]-mFrictionVsSlipGraph[0][0])...">getFrictionVsSlipGraphRecipx1Minusx0</a>()<span class="keyword"> const </span>{<span class="keywordflow">return</span> mFrictionVsSlipGraphRecipx1Minusx0;}
<a name="l01312"></a>01312 
<a name="l01318"></a><a class="code" href="classPxVehicleTireData.html#f317498c9bf064a14e1856288280e145">01318</a>     <a class="code" href="group__foundation.html#g6a774eed3cad34b0f636332a3d28c6bb">PX_FORCE_INLINE</a> <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> <a class="code" href="classPxVehicleTireData.html#f317498c9bf064a14e1856288280e145" title="Return Cached value of 1.0f/(mFrictionVsSlipGraph[2][0]-mFrictionVsSlipGraph[1][0])...">getFrictionVsSlipGraphRecipx2Minusx1</a>()<span class="keyword"> const </span>{<span class="keywordflow">return</span> mFrictionVsSlipGraphRecipx2Minusx1;}
<a name="l01319"></a>01319 
<a name="l01320"></a>01320 <span class="keyword">private</span>:
<a name="l01321"></a>01321 
<a name="l01329"></a><a class="code" href="classPxVehicleTireData.html#8b459e357483c7ee86304cc1280c2d2d">01329</a>     <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> mRecipLongitudinalStiffnessPerUnitGravity;
<a name="l01330"></a>01330 
<a name="l01338"></a><a class="code" href="classPxVehicleTireData.html#72bc73620f4d6265cf51869439574d3c">01338</a>     <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> mFrictionVsSlipGraphRecipx1Minusx0;
<a name="l01339"></a>01339 
<a name="l01347"></a><a class="code" href="classPxVehicleTireData.html#5a2f35b2a0e3e225e13c62f6d4c588d6">01347</a>     <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> mFrictionVsSlipGraphRecipx2Minusx1;
<a name="l01348"></a>01348 
<a name="l01349"></a><a class="code" href="classPxVehicleTireData.html#0b498753b7cf6afa6f0d507413dcb629">01349</a>     <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> mPad[2];
<a name="l01350"></a>01350 
<a name="l01351"></a>01351     <span class="keywordtype">bool</span> isValid() <span class="keyword">const</span>;
<a name="l01352"></a>01352 };
<a name="l01353"></a>01353 <a class="code" href="group__foundation.html#gb12cc8cbd08c9c19ab0d40b7f789012e">PX_COMPILE_TIME_ASSERT</a>(0==(<span class="keyword">sizeof</span>(<a class="code" href="classPxVehicleTireData.html">PxVehicleTireData</a>)&amp; 0x0f));
<a name="l01354"></a>01354 <span class="preprocessor">#if !PX_DOXYGEN</span>
<a name="l01355"></a>01355 <span class="preprocessor"></span>} <span class="comment">// namespace physx</span>
<a name="l01356"></a>01356 <span class="preprocessor">#endif</span>
<a name="l01357"></a>01357 <span class="preprocessor"></span>
<a name="l01359"></a>01359 <span class="preprocessor">#endif //PX_VEHICLE_CORE_COMPONENTS_H</span>
</pre></div></div>

<hr style="width: 100%; height: 2px;"><br>
Copyright &copy; 2008-2018 NVIDIA Corporation, 2701 San Tomas Expressway, Santa Clara, CA 95050 U.S.A. All rights reserved. <a href="http://www.nvidia.com ">www.nvidia.com</a>
</body>
</html>